Simulink running despite error message
이전 댓글 표시
So, I have the following issue, that confuses me. I have simulink model to compare different controller (in Variant Subsystems). I use mainly MATLAB Function Blocks to implement those controllers. For one controller, however, simulink throws me an error message:

This is the only error message and it doesn't make sense to me. But the simulation completes normally, and all the values seem correct. I could also set breakpoints and check on the matrix dimensions:


I am wondering if anybody had same issue and what causes it? I could just ignore it, but this does not seem right for me. I would rather fix this.
댓글 수: 2
Walter Roberson
2024년 8월 19일
As a matter of form, I would avoid using
r_n = N_x(1)\r;
The \ is seldom used with scalar left operand, so most people will not understand the operation you are doing there, which is equivalent to
r_n = r ./ N_x(1);
Marko Marković
2024년 8월 19일
편집: Marko Marković
2024년 8월 19일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Simulink에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!