필터 지우기
필터 지우기

ERROR: Dimension _ is fixed on the left-hand side but varies on the right. How to solve this?

조회 수: 10 (최근 30일)
Hi!
I am using an embedded Matlab function inside a subsystem mask in Simulink, which is taking from a mask the size of a vector inside the m-function.
I want this signal to has its size fixed for the whole simulation, so I unchecked the tunable checkbox on the mask.
However, when I use this parameter to define the size of the variable I get this error:
Dimension 2 is fixed on the left-hand side but varies on the right ([3 x 6] ~= [3 x :?]).
If I use a number instead, the simulation works.
How can I use a mask parameter to fix the size of the vector without getting this error?
Many thanks!

채택된 답변

Kaustubha Govind
Kaustubha Govind 2013년 6월 18일
Could you also ensure that the parameter "Tunable" checkbox is unchecked on the MATLAB Function block's Ports and Data Manager.
  댓글 수: 1
Dani Tormo
Dani Tormo 2013년 6월 18일
편집: Dani Tormo 2013년 6월 19일
Ahaa! There was another tunable parameter!
Yeah, unchecking this one it is working. But what's the difference between them? Why there are two tunable parameters?
Thanks Kaustubha!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by