{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ex10_2 - xlabel'Time(sec ylabel'y(t the following adds a...

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

View Full Document Right Arrow Icon
% Example 9.2 t = 0:.4:50; Kp = 100; num = .06*Kp; den = [1 .01+.001*Kp]; y1 = step(num,den,t); Kp = 200; num = .06*Kp; den = [1 .01+.001*Kp]; y2 = step(num,den,t); Kp = 500; num = .06*Kp; den = [1 .01+.001*Kp]; 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)') % the following adds a legend hold on plot([13 21],[39 37],[9 21],[45 41],[5 21],[52 45]) text(22,45,'Kp = 500') text(22,41,'Kp = 200') text(22,37,'Kp = 100') hold off...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online