Using Simulink | ![]() ![]() |
Displaying System States
The states
debug command lists the current values of the system's states in the MATLAB command window. For example, the following sequence of commands shows the states of the Simulink bouncing ball demo (bounce
) after its first and second time steps.
sldebug bounce [Tm=0 ] **Start** of system 'bounce' outputs (sldebug @0:0 'bounce/Position'): states Continuous state vector (value,index,name): 10 0 (0:0 'bounce/Position') 15 1 (0:5 'bounce/Velocity') (sldebug @0:0 'bounce/Position'): next [Tm=0.01 ] **Start** of system 'bounce' outputs (sldebug @0:0 'bounce/Position'): states Continuous state vector (value,index,name): 10.1495095 0 (0:0 'bounce/Position') 14.9019 1 (0:5 'bounce/Velocity')
![]() | Displaying Algebraic Loop Information | Displaying Integration Information | ![]() |