[問題] 關於simulink中的 workspace的疑問已回收

看板MATLAB作者 (奇奇)時間16年前 (2009/07/03 02:09), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
如果想從m檔案中 傳入一個直進去simulink裡面 from workspace應該可以有這個功能吧? 假設我想傳workspace中的a=2 進入simulink裡面 就會出現error如下: The matrix must have two dimensions and at least two columns. Complex signals of any data type and non-double real signals must be in structure format. The first column must contain time values and the remaining columns the data values. 爬過有關傳值進入simulink的文章 from workspace一定要傳array才行嗎? 還是傳入常數應該用別的function而不是用from workspace呢? 謝謝大家 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.217.23

07/03 04:40, , 1F
你可以在simulink中拉一個constant 然侯值給a這個變數
07/03 04:40, 1F
文章代碼(AID): #1AJFVp8v (MATLAB)
文章代碼(AID): #1AJFVp8v (MATLAB)