- 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
2 views (last 30 days)
Anusha Sasidharan on 6 May 2022
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: