필터 지우기
필터 지우기

variable size matrix error in matlab function block

조회 수: 32 (최근 30일)
ozcan
ozcan 2014년 1월 13일
답변: Kaustubha Govind 2014년 3월 20일
I use variable size 'w1' matrice in feedback loop with matlab function block. I configured the setting by opening up the Embedded MATLAB Editor, then, select Tools>Edit Data/Ports. Select the corresponding input and check "Variable-size" on the right panel. Also, enter [2 25] as the Size (this is used as the maximum size for variable-size signals).
Then exist this error
Expression '[2 25]' for maximum of data 'w1' (#113) must evaluate to a scalar.
How can solve this error ?

채택된 답변

Kaustubha Govind
Kaustubha Govind 2014년 3월 20일
You need to enter the maximum size of variable-size signals by checking the "Variable size" box and entering the size in the "Size" field. It looks like you may be using the "Maximum" field instead, which is used to specify the maximum value that the signal can attain.

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by