I have this error Index in position 1 exceeds array bounds.
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Rigo ZOO
le 25 Août 2022
Commenté : Rigo ZOO
le 25 Août 2022
I have a script, when I run it, I have the eabove error:
Index in position 1 exceeds array bounds.
Error in BEM (line 245)
angle=foilarray{airfoil,1}(aoacounter,1);
(Line 245 is this one) ----> angle=foilarray{airfoil,1}(aoacounter,1);
I read solution regarding this topic but no answer was helpful
6 commentaires
Walter Roberson
le 25 Août 2022
We do not have your input files, and we do not know what parameters you are calling the function with.
Réponse acceptée
Walter Roberson
le 25 Août 2022
Every one of your .dat files have text headers on them, but in every case you are using textscan() with %f format and no Headerlines
For those files, you should be using
'HeaderLines', 53
4 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Matrix Indexing 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!