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

 Akzeptierte Antwort

Akihumi
Akihumi am 7 Mai 2020

0 Stimmen

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.

Weitere Antworten (0)

Kategorien

Tags

Gefragt:

am 7 Mai 2020

Bearbeitet:

am 15 Okt. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by