echo on
close all
%--------------------------------------------------------------------------
% 2. gykorló feladat megoldása
%--------------------------------------------------------------------------
%
T0 = 1;
xszi = [.3 .7 1 2];
num = 1;
den1 = [T0^2 2*xszi(1)*T0 1];
den2 = [T0^2 2*xszi(2)*T0 1];
den3 = [T0^2 2*xszi(3)*T0 1];
den4 = [T0^2 2*xszi(4)*T0 1];

step(num,den1); grid;
hold
step(num,den2);
step(num,den3);
step(num,den4);
legend('\xi = 0.3','\xi = 0.7','\xi = 1.0','\xi = 2.0');
hold off

figure
bode(num,den1); grid
hold
bode(num,den2);
bode(num,den3);
bode(num,den4);
legend('\xi = 0.3','\xi = 0.7','\xi = 1.0','\xi = 2.0');
hold off