Specify a MATLAB function to run after each simulation is complete through
SimulationInput
object, in
in = in.setPostSimFcn(@(
runs after each simulation is complete. The y
) myfunction(arg1, arg2 ...
))Simulink.SimulationOutput
object is passed as the argument
y
to this function. myfunction
is any
MATLAB® function and can be used to do the post processing on the output. To
return post processed data, you must return it as values in a struct. These values
are then packed into the Simulink.SimulationOutput
output to replace the usual logged data or add new data to the Simulink.SimulationOutput
object.
applyToModel
| loadVariablesFromMATFile
| parsim
| setBlockParameter
| setExternalInput
| setInitialState
| setModelParameter
| setPreSimFcn
| setVariable
| Simulation
Manager
| Simulink.SimulationInput
| validate