setPreSimFcn
Specify a MATLAB function to run before start of each simulation through
SimulationInput
object, in
Description
in = in.setPreSimFcn(
registers the
callback function associated with the function handle 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 Simulink.SimulationInput
object as the only
output argument.