Hi,
Iām assuming you want to clear the model workspace once you close it. You can do so by:
- Go to model settings>model properties in the MODELLING tab in the Simulink model.
- In model properties go to callbacks tab, In the āPostLoadFcnā section, copy the code given below.
mdlWks = get_param('input_check','ModelWorkspace');
clear(mdlWks);
Click apply and save the model.
Once you close the model & open it again the next time, the model workspace gets cleared.
For better understanding, refer the following article:
Hope this Helps.
Best Answer