The model run inside a MATLAB loop is not automatically saved. Make sure to save the model at each iteration using the command mphsave to save the model object.
If you are not interested in saving the entire model object at each iteration, you can extract data and store it in the MATLAB workspace. See Extracting Results to find the most suitable function to your model.
|
See the MATLAB help for more information about the MATLAB commands for, while, if, switch, try/catch, break, and continue.
|