Index exceeds matrix dimensions. Error in HW2 (line 82) CL(i) = a(i)*(AOA(i) - alp0);
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Austen Thomas
le 20 Jan 2018
Commenté : Walter Roberson
le 20 Jan 2018
I am trying to create a plot with multiple varying functions but i keep getting the error that the index exceeds the matrix dimensions.
1 commentaire
Réponse acceptée
Walter Roberson
le 20 Jan 2018
Your for 1:1:10 initializes a(1) to a(10). The loop after that is to length(k) which is 33 so it tries to use a(1) to a(33) but a(11) onwards does not exist
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!