Documente Academic
Documente Profesional
Documente Cultură
Reluam exemplul 1
my cy ky u (t )
y (0) y 0 ,
(18)
(19)
y 0 y 0
x1 y , x2 y sau
(20)
k
c
1
x1 x2 u
m
m
m
(21)
y 1 0
(22)
x 2 m m x2 m
x1
0u
x2
y 1 0
Introducind notatiile
(23)
(24)
x1
x2
1
0
0
k
c
A
1 ; C 1 0 ; D 0
;
;
m
m
m
(25)
(26)
Instructiunile MATLAB
% se tipareste fila Matlab cu acest nume generata cu editorul de ecuatii (vezi
observatia 1)
>> type osmec1
% obtinem
m=1; k=10; c=1;
A=[0 1; -k/m -c/m]
B=[0; 1/m]
C=[1 0]
D=0
G1osmec=ss(A, B, C, D)
% salvam
>> osmec1
% si rezulta matricele A, B, C, D
A=
0 1
-10 -1
B=
0
1
C=
1
D=
0
t 0,
x(t ) n
x(0) x0
(27)
( sI A) X ( s ) x (0)
X ( s ) ( sI A) 1 x(0)
Obs.:
1
1 ( sI A)
(28)
(29)
(t ) L1 ( sI A) 1 e At
unde
(29)
(30)
m 1, k 1, c 0
mx kx 0
x1 x1 0
x 0 1 x1
0 1
x 1
1 0
x 2 1 0 x2
Calc. rezolventa
s 1
1 s
sI A
si inversa rezolventei
s
1
2
2
( sI A) 1 s 1 s 1
1
s
s 2 1 s 2 1
cos t
(t ) L1 ( sI A) 1
sin t
sin t
cos t
cos t
x(t )
sin t
Solutia
sin t
cos t
x (0)
(31)
(32)
f (t ) g (t ) f (t ) g (t ) d
0
L f (t ) g (t ) F ( s ) G ( s )
respectiv
L1 F ( s ) G ( s ) f (t ) g (t )
(t ) L1 ( sI A) 1 e At
x (t ) e At x (0) e A(t z ) Bu ( ) d
0
(33)