I have some persistent variables in my Embedded MATLAB block in the model. I would like to be able to save and restore the values of this persistent variable over successive simulations.
MATLAB: Can I save and restore persistent variables in Embedded MATLAB across simulations in Simulink
emlpersistencesimulinkstates
Best Answer