採用された回答

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 件のコメント

jay Florence
jay Florence 2017 年 3 月 29 日
Thank you so much this was the problem and it all works perfectly now!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by