Borrar filtros
Borrar filtros

Dynamical memory allocation in Simulink

1 visualización (últimos 30 días)
Dina Irofti
Dina Irofti el 7 de Feb. de 2014
Respondida: Kaustubha Govind el 11 de Abr. de 2014
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!

Respuestas (1)

Kaustubha Govind
Kaustubha Govind el 11 de Abr. de 2014
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.

Categorías

Más información sobre Model Verification en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by