Using a matrix in Matlab Functions
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mohammad Hussein Yoosefian Nooshabadi
le 26 Mar 2017
Commenté : Mohammad Hussein Yoosefian Nooshabadi
le 26 Mar 2017
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 commentaires
Réponse acceptée
Jan
le 26 Mar 2017
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!