在Simulink中,可以使用Merge block來將if else語句對應的參數輸出到同一個outport中。下面是具體的步驟:
這樣就可以將if else語句對應的參數輸出到同一個outport中了。