Compute the signals that this MATLAB S-function block emits
representing the Level-2 MATLAB S-Function block.
The Simulink® engine invokes this required method at each
simulation time step. In a Level-2 MATLAB S-function, the
calculates the S-function's outputs at the current time step and store
the results in the run-time object's
In addition, for S-functions with a variable sample time, the
computes the next sample time hit.
Use the run-time object method
determine if the current simulation time is one at which a task handled
by this block is active. For port-based sample times, use the
of the run-time object's
to determine if the port produces outputs or accepts inputs at the
current simulation time step.
Set the run-time object's
to specify the time of the next sample hit for variable sample-time