(Not recommended) Return the MATLAB S-function simulation state as a valid MATLAB data structure, such as a matrix structure or a cell array.
GetSimState is not recommended. Use
representing the Level-2 MATLAB S-Function block.
The Simulink® engine invokes this custom method to get the
simulation state (SimState) of the model containing
A call to this method should occur after
Terminate to ensure that all of the S-function
data structures (e.g., states, DWork vectors, and outputs) are available.