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

1 次查看(过去 30 天)
[MATLAB is showing this error "Index exceeds the number of array elements (1)

采纳的回答

Akihumi
Akihumi 2020-5-7
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by