how to solve 'Index exceeds the number of array elements (1)'?

1 visualización (últimos 30 días)
Heya :)
Heya :) el 7 de Mayo de 2020
Editada: Heya :) el 15 de Oct. de 2020
[MATLAB is showing this error "Index exceeds the number of array elements (1)

Respuesta aceptada

Akihumi
Akihumi el 7 de Mayo de 2020
Your x and y are single value, so it will have error when i==2.
You can make use of 'Pause on Errors' under the drop down menu of Run to analyse what's going wrong with the variables.

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by