Here is an example of how to create a MATLAB class that loads a Simulink model and changes its parameters including solver type and simulation time:
1146 chars34 lines
To use this class, you can first create an instance by passing the name of the Simulink model and any parameters you want to change:
148 chars3 lines
Then you can run the model and store the simulation results:
87 chars3 lines
Note that this is just an example and may need to be modified to fit the specific needs of your application.
gistlibby LogSnag