- Save the workspace variables in the model workspace or a data dictionary.
- If you want to use the base workspace itself, then define the variables in any relevant callback functions of the model.
In Simulink, when an SLX file is loaded, the workspace variables are not populated
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Roy Nordstrom
el 29 de Abr. de 2022
Respondida: Anusha Sasidharan
el 6 de Mayo de 2022
In Simulink, when I load one of my saved SLX files, the workspace variables do not get populated.
This forces me to create them manually, to make the model functional.
What am I missing here ?
0 comentarios
Respuesta aceptada
Anusha Sasidharan
el 6 de Mayo de 2022
Hi,
I understand that you want to retain the workspace variables that you created for the model.
You could try one of these approaches:
Here are some documentation topics for this:
Thanks,
Anusha
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Programmatic Model Editing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!