clear all; close all;
K = 1;
zeta = 0.1;
omegan1 = 1;
omegan2 = 5;
omegan3 = 10;
num1 = [ 0 0 K*omegan1^2 ];
den1 = [ 1 2*zeta*omegan1 omegan1^2 ];
num2 = [ 0 0 K*omegan2^2 ];
den2 = [ 1 2*zeta*omegan2 omegan2^2 ];
num3 = [ 0 0 K*omegan3^2 ];
den3 = [ 1 2*zeta*omegan3 omegan3^2 ];
sys1 = tf( num1, den1 );
sys2 = tf( num2, den2 );
sys3 = tf( num3, den3 );
t = 0:0.01:15;
[ 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,15])
ylim([-10,10])
xticks([0 5 10 15])
yticks([-10 -5 0 5 10])
grid;
xlabel('time t [s]');
ylabel('y(t)')
legend('ω_n = 1','ω_n = 5','ω_n = 10');