setPostSimFcn
Specify aMATLABfunction to run after each simulation is complete throughSimulationInput
object,in
Syntax
Description
in = in.setPostSimFcn(
registers the callback function associated with the function handlefunc
)func
after each simulation is complete. TheSimulink.SimulationInput
object is passed as an argument to this function.func
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 theSimulink.SimulationOutput
output to replace the usual logged data or add new data to theSimulink.SimulationOutput
object.