HW2 sol

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

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 45 Calculated y(t) in Problem 2d Step Response for transfer function in Problem 2b 0.4 Amplitude (m) 0.35 0.3 0.25 0.2 0.15 0.1 0.05 0 0 1 2 3 4 5 6 7 8 9 10 Time (sec) % Problem 2 -- step response c = 4; k = 4; ms = 1; Mb = 100; sys = tf([c k],[ms*Mb c*(ms+Mb) k*(ms+Mb) 0 0]) figure(2) [ystep,tstep] = step(sys,10); yt = -1/400+(1/200).*tstep.^2+(1/400).*exp(-2.*tstep)+(1/200).*tstep.*exp(2.*tstep); plot(tstep,yt,'k',tstep,ystep,'r','linewidth',3) title('Problem 2e: Step Response','FontSize',20) legend('Calculated y(t) in Problem 2d','Step Response for transfer function in Problem 2b','FontSize',16) xlabel('Time (sec)','FontSize',16) ylab...
View Full Document

This document was uploaded on 03/21/2014.

Ask a homework question - tutors are online