setPostSimFcn
SetMATLABfunction to run after each simulation
Description
simIn = setPostSimFcn(
configures the post simulation function associated with the function handlesimIn
,func
)func
on theSimulink.SimulationInput
objectsimIn
. TheSimulink.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. To return post processed data, you must return it as values in a structure. These values are then packed into theSimulink.SimulationOutput
output to replace the usual logged data or add new data to theSimulink.SimulationOutput
对象。
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2017a