Why Matlab shows “Index exceeds matrix dimensions.”?

Hello,
I'm having a problem with matlab mfile simulation. it tells me Index exceeds matrix dimensions. I have attached the mfile and model. COuld you please advise. Thank you.

 採用された回答

Image Analyst
Image Analyst 2014 年 12 月 14 日

0 投票

One of the indexes you're using to index into your array exceeds the max allowable size for that dimension. For example you have a 3 by 4 array and you're trying to access the 50th row. Put whos before it so see, or else look at it in the workspace or variable inspector window.
whos yourArray
whos yourIndex

その他の回答 (1 件)

George Feghaly
George Feghaly 2014 年 12 月 14 日

0 投票

Thank you . its solved

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

製品

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by