필터 지우기
필터 지우기

Dynamical memory allocation in Simulink

조회 수: 1 (최근 30일)
Dina Irofti
Dina Irofti 2014년 2월 7일
답변: Kaustubha Govind 2014년 4월 11일
Hello!
I have a signal and, with its last M values, I want to build another signal, where M is a variable input. How can I implement this in Simulink?
Details: I used a Unit Delay and a MATLAB Function and I tried not to use dynamical memory allocation (I used assert ), I got an error so I checked Variable size for my signals in Model Explorer , and now I still have an error that tells me that my signal has variable size but the upper bound is not specified. How can I set the upper bound? I already tried Limit range in Model Explorer , doesn't work.
Thanks!

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2014년 4월 11일
Does the error point to the MATLAB Function block? If so, on the block's Ports and Data Manager, you need to select the 'Variable-size' checkbox and enter the maximum size of the signal in the 'Size' parameter.

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by