blob: a256373abb6964d6b542c0500d3516ef3ef2db9a (
plain)
1
2
3
4
5
6
7
|
s=%s ;
//create state equation of the following matrix
TFcont=syslin ('c',(s+6)/(s^2+5*s+6))
SScont=tf2ss(TFcont )
[Ac ,Bc ,U, ind ]=canon( SScont ( 2 ) , SScont ( 3 ) )
disp(Ac,"MAtrix A=")
disp(Bc,"MAtrix B=")
|