setPostSimFcn
Set MATLAB function to run after each simulation
Description
simIn = setPostSimFcn(
                configures the post-simulation function associated with the function handle
                    simIn,func)func on the Simulink.SimulationInput
                object simIn. The Simulink.SimulationOutput 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.
                Post-processed data, must be returned as values in a structure. 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.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2017a