summaryrefslogtreecommitdiff
path: root/104/CH5/EX5.8/5_8.sce
blob: 9ff9bb379af1d370a763e7642416b8573fb526a2 (plain)
1
2
3
4
5
6
7
8
9
//characteristic equation from state equation
A=[0 1 0;0 0 1;-2 -1 -5]
B=[0;0;1]
C=[1 0 0]
D=[0]
[Row Col]=size(A)
Gr=C*inv(s*eye(Row,Col)-A)*B+D
c=denom(Gr)
disp(c,"characteristic equation=")