I have this error Index in position 1 exceeds array bounds.
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Rigo ZOO
el 25 de Ag. de 2022
Comentada: Rigo ZOO
el 25 de Ag. de 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 comentarios
Walter Roberson
el 25 de Ag. de 2022
We do not have your input files, and we do not know what parameters you are calling the function with.
Respuesta aceptada
Walter Roberson
el 25 de Ag. de 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 comentarios
Más respuestas (1)
Ver también
Categorías
Más información sobre Matrix Indexing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!