I have this error Index in position 1 exceeds array bounds.
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Rigo ZOO
il 25 Ago 2022
Commentato: Rigo ZOO
il 25 Ago 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 Commenti
Walter Roberson
il 25 Ago 2022
We do not have your input files, and we do not know what parameters you are calling the function with.
Risposta accettata
Walter Roberson
il 25 Ago 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 Commenti
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!