fig5_38 - den4=[1 2*zeta4 1];...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% Chapter 5: Figure 5.38%% Compute impulse response for a second-order system % Duplicate Figure 5.6%t=[0:0.1:10]; num=[1]; zeta1=0.1; den1=[1 2*zeta1 1]; sys1=tf(num,den1);zeta2=0.25; den2=[1 2*zeta2 1]; sys2=tf(num,den2);zeta3=0.5; den3=[1 2*zeta3 1]; sys3=tf(num,den3);zeta4=1.0;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: den4=[1 2*zeta4 1]; sys4=tf(num,den4);%[y1,T1]=impulse(sys1,t); [y2,T2]=impulse(sys2,t); [y3,T3]=impulse(sys3,t); [y4,T4]=impulse(sys4,t);%plot(t,y1,t,y2,t,y3,t,y4) xlabel('\omega_n t'), ylabel('y(t)/\omega_n')title('\zeta = 0.1, 0.25, 0.5,1.0'), grid...
View Full Document

Ask a homework question - tutors are online