how to solve 'Index exceeds the number of array elements (1)'?
1 次查看(过去 30 天)
显示 更早的评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!