How to find "Index exceeds matrix dimensions" error in Simulink

7 Ansichten (letzte 30 Tage)
Ron Bremner
Ron Bremner am 6 Jun. 2017
Bearbeitet: Don Zheng am 12 Jun. 2017
I am running a Simulink model (MATLAB v. 15), and it gives me an error message (without running), stating "Index exceeds matrix dimensions". It gives me no other information (which model it is occurring in, which variable has an index which is being exceeded, etc.)
Is there a file that states where this is occurring? Is there some other means to determine where this is happening? The model is fairly large, and includes StateFlow control blocks, Matlab blocks, etc.

Antworten (1)

Don Zheng
Don Zheng am 9 Jun. 2017
By MATLAB v. 15, I assume you meant R2006a. Can you try the model in a recent release, e.g., R2017a? In the newer version, there might be a more informative error message.
  2 Kommentare
Ron Bremner
Ron Bremner am 9 Jun. 2017
I'm sorry, I meant with MATLAB 2015b
Don Zheng
Don Zheng am 12 Jun. 2017
Bearbeitet: Don Zheng am 12 Jun. 2017
Please try using the following command line interface and see if more information is available from the command line output.
set_param(gcs,'SimulationCommand','update');
Otherwise, try "binary-search" on the model to find problematic block.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by