MATLAB Answers

How to compile the model just once and then simulate it various times without compiling again and again.

1 view (last 30 days)
Mandeep Singh
Mandeep Singh on 17 Dec 2015
Commented: Sebastian Castro on 18 Dec 2015
I want to compile the model just once and then simulate it various times without compiling again and again, as in case of a signal builder, Via a script. Is it possible? If yes then can you please help me with the solution.
Regards Mandeep Singh

  1 Comment

Sebastian Castro
Sebastian Castro on 18 Dec 2015
Which version are you on? If you have R2015b, there is a command-line way to set up Fast Restart simulation.
set_param('modelName','FastRestart','on');
sim('modelName', ... )
...
sim('modelName', ... )
set_param('modelName','FastRestart','off');
- Sebastian

Sign in to comment.

Answers (0)

Tags