How to instatiate a variable on to an external file?
Mostrar comentarios más antiguos
I want to produce generated code which instantiates a variable not on the model.c file but on a different file which I specify. I need this because I want to use this same variable on different models (code generation process goes per model) and I cannot instantiate them more than once.
1 comentario
Ivan van der Kroon
el 23 de Mayo de 2011
With the save command? Otherwise, can you post an m-file or be more specific?
Respuestas (1)
Kaustubha Govind
el 23 de Mayo de 2011
0 votos
I've never tried this, but I think you should be able to achieve this using Custom Storage Classes. In particular, you should set the Data Initialization property of the Custom Storage Class to "none", so that not initialization code is generated.
Categorías
Más información sobre MATLAB Coder 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!