You are on page 1of 3

A=[2 -0.

8;2 0];
B=[1;0];
C=[1 0];
D=[0];
L=place(A',C',[0.7 0.2])'

L =

1.1000
1.8250

M=eig(A-L*C)

M =

0.7000
0.2000

x=[-1;1];
xobs=[0;0];
XX=x;
XXobs=xobs;
sys=ss(A,B,C,D)

sys =

A =
x1 x2
x1 2 -0.8
x2 2 0

B =
u1
x1 1
x2 0

C =
x1 x2
y1 1 0

D =
u1
y1 0

Continuous-time state-space model.


Model Properties
poles=eig(A)

poles =

1.0000 + 0.7746i
1.0000 - 0.7746i

Qc=ctrb(sys)
Qc =

1 2
0 2

rangQc=rank(Qc)

rangQc =

n=rank(A)

n =

if rangQc==n
display('système controlable')
else
display('système non controlable')
end
système controlable
Qo=obsv(sys)

Qo =

1.0000 0
2.0000 -0.8000

rangQo=rank(Qo)

rangQo =

if rangQo==n
display('système observable')
else
display('système non observable')
end
système observable
syms p
Ap=p*eye(2)-A

Ap =

[p - 2, 4/5]
[ -2, p]
Sd=[Ap B]

Sd =

[p - 2, 4/5, 1]
[ -2, p, 0]

rangSd=rank(Sd)

rangSd =

if rangSd==n
display('système non stable')
else
display('système stable')
end
système non stable
T=15;
U1=.1*ones(1,T); % input signal
for k=0:T-1,
u=U1(k+1);

You might also like