How do I update my Simulink model from the MATLAB command line?

I want to force an update (ctrl + D) on my Simulink model using a prompt from the command line.
I would also like to generally know more about the command line functionality of Simulink.

 Accepted Answer

In the MATLAB command window, type the following:
set_param(gcs,'SimulationCommand','Update')
This is the same as forcing an update (Ctrl + D) from the Simulink window.
For more information on how to use the command line functionality of Simulink, see: 

More Answers (0)

Categories

Products

Community Treasure Hunt

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

Start Hunting!