getStates

Purpose

Returns the internal state of the system

Syntax

x = system.getStates()

Description

This function returns the system's internal state.

Output Arguments

x

Values of the internal states

Class: double

Example(s)

Example 1

Define a 1D LTI system ../../../../../fig/mpt/modules/ui/@LTISystem/getstates1.png.
sys = LTISystem('A', 1, 'B', 1)
LTISystem with 1 state, 1 input, 0 outputs
Set the system's internal state to ../../../../../fig/mpt/modules/ui/@LTISystem/getstates2.png.
sys.initialize(2.5);
Retrieve the internal state.
x = sys.getStates()
x =

                       2.5


© 2003-2013 Michal Kvasnica: STU Bratislava, michal.kvasnica@stuba.sk