Академический Документы
Профессиональный Документы
Культура Документы
2, 2011
Computer Engineering
Department-King Saud
University
Dr. R. HEDJAR
[STATE SPACE
REPRESENTATION]
[Type the abstract of the document here. The abstract is typically a short summary of the contents of
the document. Type the abstract of the document here. The abstract is typically a short summary of the
contents of the document.]
State space representation:
Let have a linear system (LTI) with order n and is represented by: ( )
( ) ( )
, the equation D(s)=0 has n solutions (n poles).
( ) ( )
Figure …..
X(t) is the state vector (n1), u(t) is the input vector (m1), y(t) is the output vector
(p1), A is the state matrix (nm), B is the input matrix (nm) and C is the output
matrix (pn).
Note that for single-input and single-output (siso) system m=p=1, and for the
multi-input and multi-output we should have m1 and p1.
Example:
Find the state representation of the system shown below with Vc and ic as the state
variable, V(t) is the input to the system and iR is the output of the system.
We have and .
Let , . From
we have or
then ,
2|Page
̇ .
,
̇
In the state space, the system is represented by: ̇ ( ) | | | || |
̇
| | ( ),
In this representation, we have access to the output iR and we can have the
information (variation) of signals Vc (x1) and iL (x2). Thus, this representation
is rich in information about our system with regards to transfer function
representation where we have access only to the input and output (black box).
In the state representation the initial condition is given X(0). Using transfer
function, the initial condition is usually zero.
( )
The transfer function of this system is: ( ) .
( )
Mechanical system:
Figure ……
3|Page
Set the state vector as: , , and . The
( )
differential equations of this system are: {
( ) ( )
By using these equations, the state space representation of the sub-system 1 (mass
M1) is:
̇
{ ,
̇
̇
{ ( )
̇
̇
̇ | |
̇ | | | | | | ( )
̇ | |
| |
̇
4|Page
to the number of integrators. Each output of integrator represents a state variable.
Thus, for this system we have 3 state variables.
c (t )
1 x3 c 1 x2 c 1 x1 c(t )
24 +
s s s
r(t)
-9
-26
-24
Figure ….
̇
From the above block diagram we obtain: { ̇
̇ ( )
Example: Find the state representation of the system represented by the transfer
function:
( ) ( )
( ) .
( ) ( )
( ) ( ) ( ) and ( ) ( ) ( ).
( ),
5|Page
The differential equation of the output is: ( ) ̈ ̇
The order of this equation is n=3, thus we need three integrators and the block
diagram of this system is shown below (note that we define each sate variable as
the output of each integrator):
1 +
7 +
x (t )
1 x3 x 1 x2 x 1 x1 x(t )
C(t)
24 + 2 +
r(t) s s s
-9
-26
-24
Figure …..
̇
The state space representation is: { ̇ or ̇
̇ ( )
| | | | ( )
The solution of this example with MATLAB: We use the statement tf2ss:
Transfer function:
s^2 + 7 s + 2
-----------------------
s^3 + 9 s^2 + 26 s + 24
6|Page
[A,B,C,D]=tf2ss(N,D)
A= B= C= 1 7 2 D= 0
-9 -26 -24 1
1 0 0 0
0 1 0 0
We have: ( ) ( ) ( ) and ( ) ( ) ( ) ( )
Example: ̇ | | | | ( ) and ( ) | | ( )
| | and ( )
( )
Thus, ( ) | |; ( ) ( ) .
( )
Important note: The state space representation is not unique but the transfer is
unique. For each system we have only one transfer function and different form of
state space representation.
7|Page
To check the results: MATLAB Code:
>> [b,a]=ss2tf(A,B,C,0)
b= 0 3 5 a=1 4 6
Matlab code tf ss
>> clear
>> [A,B,C,D]=tf2ss(N,D)
A= B= C= D=
-4 -6 1
1 0 0 3 5 0
Which is different from the initial model !!! Why ??
State space representation or time domain modeling can be used for nonlinear
system:
8|Page
( )
̇
Let and ̇ { This is a nonlinear
̇ ( )
representation of the pendulum.
9|Page