Simulink and Variable Sized Global Variables
Mostrar comentarios más antiguos
I have a M-Function which reads some data at each time step, stores it in a growing dictionary (A = [A; a], where 'a' is the new data) and then uses it to produce an output.
I would like to use this function in Simulink, however I cannot see a way to create a variable sized global variable that A needs to be.
Could someone please point me in the correct direction?
Respuesta aceptada
Más respuestas (1)
Guy Rouleau
el 10 de En. de 2012
0 votos
Simulink supports variable size signals. However you need to specify a maximum size.
This topic is covered here:
If you want, you can use variable size also in the MATLAB Function block:
1 comentario
Superfish
el 10 de En. de 2012
Categorías
Más información sobre Simulink Functions en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!