How do I update my Simulink model from the MATLAB command line?
60 views (last 30 days)
Show older comments
MathWorks Support Team
on 27 Jun 2009
Edited: MathWorks Support Team
on 12 Feb 2025
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
MathWorks Support Team
on 12 Feb 2025
Edited: MathWorks Support Team
on 12 Feb 2025
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)
See Also
Categories
Find more on Programmatic Model Editing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!