ssGetMinStepSize
Get the minimum step size used by the model containing the S-function.
Syntax
time_T mSS = ssGetMinStepSize(SimStruct *S)
Arguments
SSimStruct that represents an S-Function block.
Returns
A time_T value indicating the minimum step size of the model
containing the S-function if the model is configured to use a variable-step solver.
Otherwise returns 0.
Description
Use this macro in methods called after the compilation phase, i.e., in
mdlSetWorkWidths or later, to obtain the maximum step size of
the model containing the S-function. See
for a description of the
matlabroot/extern/include/tmwtypes.htime_T data type.
Languages
C, C++
Examples
The following lines get and display the fixed step size.
time_T mSS = ssGetMinStepSize(S);
ssPrintf("Minimum step size : %g\n",mSS);
See Also
Version History
Introduced before R2006a