Using a matrix in Matlab Functions
2 次查看(过去 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 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!