I am running a script that loops through parameters and runs Simulink for each combination. At the end of each model run, I save key results and the parameters in a mat file. But the model itself is changing as we improve the algorithm. In the same mat file, I would also like to save information on the model setup/topology at a level sufficient to identify if differences in the results are due to differences in the model. (We do not presently use version control software).
What is the best way to save the model setup, if it can be done? My default solution is to save the *.mdl file for each model run, which seems inefficient.
Best Answer