Quantcast

Documentation Center

  • Trial Software
  • Product Updates

states

Current state values

Syntax

states

Description

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.

Examples

Display information about the states for the vdp model.

  1. In the MATLAB Command Window, enter:

    sldebug 'vdp'

    The MATLAB command prompt >> changes to the Simulink® debugger prompt (sldebug @0): >>.

  2. 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')
Was this topic helpful?