Skip to Main Content Skip to Search
Product Documentation

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')

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS