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개)

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

제품

태그

질문:

2014년 12월 14일

답변:

2014년 12월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by