0% found this document useful (0 votes)
34 views

Lab Oratorio

The document contains examples of converting between state space and transfer function representations of systems and canonicalizing state space systems. It includes 3 sections: 1. Converting transfer functions to state space and vice versa for several examples. 2. Converting a state space system to transfer functions for SISO and MIMO cases and back to state space. 3. Checking the controllability and observability of state space systems, converting to companion and modal canonical forms.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views

Lab Oratorio

The document contains examples of converting between state space and transfer function representations of systems and canonicalizing state space systems. It includes 3 sections: 1. Converting transfer functions to state space and vice versa for several examples. 2. Converting a state space system to transfer functions for SISO and MIMO cases and back to state space. 3. Checking the controllability and observability of state space systems, converting to companion and modal canonical forms.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 19

Laboratorio

1
A
num=[10 10];
den=[1 6 5 10];
[A,B,C,D]=tf2ss(num,den)
B
num=[1 4]
den=[1 2 6]
[A,B,C,D]=tf2ss(num,den)
C
num=[2 3];
den=[1 0.1 1];
[A,B,C,D]=tf2ss(num,den)
num=[1 2 1];
den=[1 0.1 1];
[A,B,C,D]=tf2ss(num,den)
2
A
A=[-3 2;1 0];
B=[1;0];
C=[1 3];
D=[0];
[num,den]=ss2tf(A,B,C,D)

B
A=[0 3;-10 15];
B=[1 1;0 1];
C=[1 0;0 1];
D=[0 0;0 0];
[num,den]=ss2tf(A,B,C,D,1)

[num,den]=ss2tf(A,B,C,D,2)
C
A=[-1 -1;1 0];
B=[1;0];
C=[1 2];
D=[0];
[num,den]=ss2tf(A,B,C,D)
3
A
Controlable
A=[-3 2;1 0];
B=[1;0];
C=[1 3];
D=[0];
[num,den]=ss2tf(A,B,C,D)
[A,B,C,D]=tf2ss(num,den)
Observable
A=[-3 2;1 0];
B=[1;0];
C=[1 3];
D=[0];
[A,B,C,D]=canon(A,B,C,D,'companion')
Diagonal
A=[-3 2;1 0];
B=[1;0];
C=[1 3];
D=[0];
[A,B,C,D]=canon(A,B,C,D,'modal')
B
Controlable
A=[0 3;-10 15];
B=[1 1;0 1];
C=[1 0;0 1];
D=[0 0;0 0];
[num,den]=ss2tf(A,B,C,D,1)

[num,den]=ss2tf(A,B,C,D,2)
[A,B,C,D]=tf2ss(num,den)
Observable
A=[0 3;-10 15];
B=[1 1;0 1];
C=[1 0;0 1];
D=[0 0;0 0];
[A,B,C,D]=canon(A,B,C,D,'companion')
Diagonal
A=[0 3;-10 15];
B=[1 1;0 1];
C=[1 0;0 1];
D=[0 0;0 0];
[A,B,C,D]=canon(A,B,C,D,'modal')
C
Controlable
A=[-1 -1;1 0];
B=[1;0];
C=[1 2];
D=[0];
[num,den]=ss2tf(A,B,C,D)
[A,B,C,D]=tf2ss(num,den)
Observable
A=[-1 -1;1 0];
B=[1;0];
C=[1 2];
D=[0];
[A,B,C,D]=canon(A,B,C,D,'companion')
Diagonal
A=[-1 -1;1 0];
B=[1;0];
C=[1 2];
D=[0];
[A,B,C,D]=canon(A,B,C,D,'modal')

You might also like