setPostSimFcn
Specify a MATLAB function to run after each simulation is complete through
SimulationInput
object, in
Description
in = in.setPostSimFcn(
registers
the callback function associated with the function handle func
)func
after each simulation is complete. The Simulink.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 the Simulink.SimulationOutput
output to replace the usual logged data or add new data to the Simulink.SimulationOutput
object.