Input has is 6*1 matrix but simulink displays only 5*1
1 回表示 (過去 30 日間)
古いコメントを表示
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:
0 件のコメント
採用された回答
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.
0 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!