How to automatically reinitialize the model workspace when Run Simulink model

Hello,
Is there an easy way that your model workspace (i.e. data calculated from the m.file coupled to the Simulink model) is automatically calculated and loaded each time when you Run your Simulink model?

 Accepted Answer

Hi Steven,
Model workspaces can be manipulated programatically
In your workflow, create a model workspace object and use reload to reload the model workspace.
How this is done in your workflow depends on what the workflow actually is.

More Answers (0)

Categories

Products

Release

R2023b

Asked:

on 11 Feb 2024

Answered:

on 11 Feb 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!