lab3.txt

(0 KB) Pobierz
Transfer function:
      2
-------------
s^2 + 4 s + 6

>> [L, M]=ss2tf(A, B, C, D, 1)

L =

         0         0    1.0000    2.0000


M =

    1.0000    1.0000    3.0000    3.0000

>> [A, B, C, D] = tf2ss(L, M)

A =

   -1.0000   -3.0000   -3.0000
    1.0000         0         0
         0    1.0000         0


B =

     1
     0
     0


C =

         0    1.0000    2.0000


D =

     0

step(A, B, C, D, 1)
>> step(L, M)
>> nyquist(A, B, C, D, 1)
>> nyquist(L, M)
>> bode(A, B, C, D, 1)
>> bode(L,M)

Kr=1.5;
Td=3;
Ti=2;
T=1;

[L,M]=parallel([Td 0], [T 1], [Kr], [1], [1], [Ti 0]);
w=0:0.01:200;
[mod,faza,w]=bode(L,M);

nyquist(L,M,w); axis([-1 5 -5 2]); grid;pause

semilogx(w,20*log10(mod)); grid;ylabel('Lm[dB]'); pause

semilogx(w,faza); grid;ylabel('faza[stopnie]'); pause;
Zgłoś jeśli naruszono regulamin