why i get Array indices must be positive integers or logical values.
Mostrar comentarios más antiguos
can you help me in this code i did everthing and how can i solve it .
i get Array indices must be positive integers or logical values.
plz help
Array indices must be positive integers or logical values.
Error in Untitled (line 98)
z(length(R),length(R)-1) = -R(length(R)-1) ; %This is the last mesh = element [n*n-1]
7 comentarios
the cyclist
el 26 de Mzo. de 2021
What is the full error message, and what line gives this error?
Can you give a small example of inputs you used, that result in this error?
Ali Al raeesi
el 26 de Mzo. de 2021
KSSV
el 26 de Mzo. de 2021
Error is clear......you are inputting indices either 0 or negative values or fractions. In MATLAB array indices should b always posittive integers.
Walter Roberson
el 26 de Mzo. de 2021
It looks to me as if R is empty, such as if the user just pressed return at the input prompt.
Ali Al raeesi
el 26 de Mzo. de 2021
Ali Al raeesi
el 26 de Mzo. de 2021
the cyclist
el 26 de Mzo. de 2021
Editada: the cyclist
el 26 de Mzo. de 2021
Again, @Ali Al raeesi, I ask that you provide specific inputs that create the error, so that we do not have to guess. For example, what would the user type when asked for the input for R?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Aerospace Blockset en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!