clear all; close all;
K = 1;
omegan = 1;
zeta1 = 1.1;
zeta2 = 1.5;
zeta3 = 2.0;
num = [ 0 0 K*omegan^2 ];
den1 = [ 1 2*zeta1*omegan omegan^2 ];
den2 = [ 1 2*zeta2*omegan omegan^2 ];
den3 = [ 1 2*zeta3*omegan omegan^2 ];
sys1 = tf( num, den1 );
sys2 = tf( num, den2 );
sys3 = tf( num, den3 );
t = 0:0.01:10;
[ y1, t1 ] = impulse( sys1, t );
[ y2, t2 ] = impulse( sys2, t );
[ y3, t3 ] = impulse( sys3, t );
plot(t1,y1,'-b',t2,y2,'-g',t3,y3,'-r');
xlim([0,10])
ylim([0.0,0.35])
xticks([0 2 4 6 8 10])
yticks([0.0 0.05 0.10 0.15 0.20 0.25 0.30 0.35])
grid;
xlabel('time t [s]');
ylabel('y(t)')
legend('ζ = 1.1','ζ = 1.5','ζ = 2.0');