Current state values
states
states
displays a list of the current states
of the model. The list includes the index, current value, system:block:element
ID, state vector name, and block name for each state.
Display information about the states for the vdp
model.
In the MATLAB Command Window, enter:
sldebug 'vdp'
The MATLAB command prompt >> changes to the Simulink® debugger prompt (sldebug @0): >>.
Enter:
states
The MATLAB Command Window displays:
Continuous States: Idx Value (system:block:element Name 'BlockName') 0 0 (0:0:0 CSTATE 'vdp/x1') 1 0 (0:2:0 CSTATE 'vdp/x2')