Main Content
setPreSimFcn
Specify MATLAB function to run before start of each simulation on
Simulink.SimulationInput
object
Description
simIn = setPreSimFcn(
registers the callback function associated with the function handle
simIn
,func
)func
before each simulation starts. The Simulink.SimulationInput
object is passed as an argument to this function.
func
is any MATLAB® function and can be used to modify the Simulink.SimulationInput
object. If you use func
to
modify the Simulink.SimulationInput
object, you must
return the Simulink.SimulationInput
object as the only
output argument.
Input Arguments
Output Arguments
Version History
Introduced in R2017a