采纳的回答

David Goodmanson
David Goodmanson 2017-3-29

1 个投票

Hi jay, It looks like I is giving you the number of columns and J the number of rows. But i is your row index and j is your column index. So you have to reverse the definitions of I and J.

1 个评论

Thank you so much this was the problem and it all works perfectly now!

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by