Input has is 6*1 matrix but simulink displays only 5*1

1 回表示 (過去 30 日間)
Med Aymane Ahajjam
Med Aymane Ahajjam 2015 年 9 月 14 日
回答済み: Med Aymane Ahajjam 2015 年 9 月 16 日
Hi, I wanted to display a 6*1 matrix but i only get it's last 5 elements (i.e. the first element doesn't appaear..)
Here's the Simulink blocks and the input variable in Matlab:

採用された回答

Tim Jackman
Tim Jackman 2015 年 9 月 16 日
When you use the From Workspace block with a matrix format (as you are doing here), each row of the matrix has a time stamp in the first column. The vector containing the corresponding data is in the subsequent column(s). Basically, the first entry in your matrix is going to be interpreted as a time stamp, and effectively ignored in this case. I'd suggest adding an extra zero in front.

その他の回答 (1 件)

Med Aymane Ahajjam
Med Aymane Ahajjam 2015 年 9 月 16 日
Okay, i see.. thanks for your reply , i'll do that :)

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by