Can someone help please?

2 次查看(过去 30 天)
Wonseh
Wonseh 2022-12-2
回答: Marcel 2022-12-7
>> CreateModel
Index exceeds the number of array elements (531).
Error in CreateModel (line 14)
d(i,j)=abs((x(i)-x(j))^2+(y(i)-y(j))^2);
  4 个评论
Torsten
Torsten 2022-12-2
By making the loops over i and j not exceed 531 for the values of i and j.
Jon
Jon 2022-12-2
For future reference it is helpful to have the subject of your question provide a quick summary of the specific problem you are having. So rather than "Can someone help please", it would be better to have something like, "Why do I receive Index exceeds number of array elements error?" That way people who have either expertise and/or interest in helping you solve the problem can know to look at it, without having to first open the question just to see what kind of help you need.

请先登录,再进行评论。

回答(1 个)

Marcel
Marcel 2022-12-7
I'd recommend using keywords to make a short and nice title for questions

类别

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

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by