Input has is 6*1 matrix but simulink displays only 5*1
조회 수: 1 (최근 30일)
이전 댓글 표시
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149034/image.png)
댓글 수: 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!