ex9_12 - xlabel('Time (sec)') ylabel('y(t)') title('Second...

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

View Full Document Right Arrow Icon
% Example 9.12 % second order response % varying zeta, wn is constant t = 0:.05:20; wn = 1; zeta = .1; num = wn^2; den = [1 2*zeta*wn wn^2]; y1 = step(num,den,t); wn = 1; zeta = .25; num = wn^2; den = [1 2*zeta*wn wn^2]; y2 = step(num,den,t); wn = 1; zeta =.7; num = wn^2; den = [1 2*zeta*wn wn^2]; y3 = step(num,den,t); plot(t,y1,'-',t,y2,'--',t,y3,'-.');
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: xlabel('Time (sec)') ylabel('y(t)') title('Second order step response') % the following inserts a legend hold on plot([9 11],[.5 .5],[9 11],[.4 .4],'--',[9 11],[.3 .3],'-.'); text(12,.5,'zeta = 0.1') text(12,.4,'zeta = 0.25') text(12,.3,'zeta = 0.7') hold off...
View Full Document

Ask a homework question - tutors are online