User`s guide

Table Of Contents
ss
11-213
Examples Example 1
The command
sys = ss(A,B,C,D,0.05,'statename',{'position' 'velocity'},...
'inputname','force',...
'notes','Created 10/15/96')
creates a discrete-time model with matrices and sample time 0.05
second. This model has two states labeled
position and velocity,andone
input labeled
force (the dimensions of should b e consistent with
these numbers of states and inputs). Finally, a note is attached with the date
of creatio n of the model.
Example 2
Compute a state-space rea lization of the tr ansfer function
by typing
H = [tf([1 1],[1 3 3 2]) ; tf([1 0 3],[1 1 1])];
sys = ss(H);
size(sys)
State-space model with 2 outputs, 1 input, and 5 states.
Note that the number of states is equal to the cumulative order of the SISO
entries of H(s).
To obtain a minimal realization of H(s), type
sys = ss(H,'min');
size(sys)
State-space model with 2 outputs, 1 input, and 3 states.
ABCD
,,,
ABCD
,,,
Hs()
s 1+
s
3
3s
2
3s 2+++
-------------------------------------------
s
2
3+
s
2
s 1++
------------------------
=