Using a matrix in Matlab Functions
조회 수: 1 (최근 30일)
이전 댓글 표시
Mohammad Hussein Yoosefian Nooshabadi
2017년 3월 26일
댓글: Mohammad Hussein Yoosefian Nooshabadi
2017년 3월 26일
Hi I have a matrix in my workspace and I want to use it in simulink. I used the From Workspace block but I faced this error when I ran my model, that mean it used the only last element of my matrix. Does any body know how to fix it?
Error:Attempted to access index 2 of an array with smaller dimension sizes.
댓글 수: 0
채택된 답변
Jan
2017년 3월 26일
The error message means, that the variable is eitehr a scalar in opposite to your assumptions, or that it is e.g. a [N x 1] vector and you try to access [1 x 2].
댓글 수: 2
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!