"Index exceeds matrix dimensions"-error Simulink

조회 수: 4 (최근 30일)
Michael Kelker
Michael Kelker 2017년 8월 5일
댓글: Jaleel Pasha 2020년 2월 18일
Hello,
I created a three phase grid as an Simulink model.
After adding 3-phase voltage source blocks and starting the simulation I get this error: "Index exceeds matrix dimensions"
I am using Matlab version 2017a and tried to get more detailed information about the error using: set_param(gcs,'SimulationCommand','update');
But I didnt get any new informations about the error
Can someone help me solving this problem?

답변 (3개)

Davide De Cicco
Davide De Cicco 2017년 8월 6일
Hi Michael,
The error simply means that you are trying to execute an operation that wants to access a cell of an array (could be matrix, vector ...) which dimensions do not correspond to what you are trying to access. For instance, you get that error if you have a 3x3 matrix and ask for the element (4,3). It's a quite common error if you are using loops.
  댓글 수: 3
Michael Kelker
Michael Kelker 2017년 8월 7일
Hey, thanks for your reply. I am not using any MATLAB Function Blocks and it seems that I am not refering to any signal that does not exist.
Jaleel Pasha
Jaleel Pasha 2020년 2월 18일
hey, have u rectified error.. am also geeting that error(i have not used a single line)

댓글을 달려면 로그인하십시오.


Michael Kelker
Michael Kelker 2017년 8월 7일
Solved my problem:
1. Located the blocks which generated the error.
2. Recreated every block. This solved the problem.
Anyway, thanks for your effords
  댓글 수: 2
Magnus Ekløff
Magnus Ekløff 2018년 6월 19일
How did you locate the blocks which generated the error?
Willim
Willim 2019년 1월 30일
편집: Willim 2019년 1월 30일
I have same problem in creating 50 buses. could you please infrom us how the problem located

댓글을 달려면 로그인하십시오.


jonatan blom
jonatan blom 2019년 2월 15일
Hi,
I have also experienced this error when a model contains a s-function builder block that has not been built. Build the s-function and the error disappears, utterly strange error message...
/Jonatan

카테고리

Help CenterFile Exchange에서 General Applications에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by