solution_hw_5

solution_hw_5 -...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
5 Problem 5) Matlab commands to plot the step response of G(s)=1/(sT+1) T=[0.1 0.5 1.0 5.0 10]; num=1; den1=[T(1) 1]; den2=[T(2) 1]; den3=[T(3) 1]; den4=[T(4) 1]; den5=[T(5) 1]; t=linspace(0,50,200); y1=step(num,den1,t); y2=step(num,den2,t); y3=step(num,den3,t); y4=step(num,den4,t); y5=step(num,den5,t); plot(t,y1,'k-',t,y2,'k--',t,y3,'k-.',t,y4,'k:',t,y5,'k.') grid xlabel('t,time') ylabel('Step responsen of G(s)=1/(sT+1)')
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 8
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 10
Background image of page 11
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: legend('T=0.1','T=0.5','T=1.0','T=5.0','T=10') 8 Matlab commands to plot the response of G(s)=1/(s+1) to r(t)=1+0.5cos wt for w=0.01,0.1,1,10,100 clear clg tf=5; t=linspace(0,tf,300); w=100; r=1+0.5*cos(w*t); c=1-(1+(1/(2*(1+w^2))))*exp(-t)+(1/(2*sqrt(1+w^2)))*cos(w*t-atan(w)); plot(t,r,'k-',t,c,'k--') axis([0 tf 0 1.6]) grid xlabel('t,time') ylabel('c(t)') title('plot for w=100') legend('r(t)','c(t)') 9 10...
View Full Document

This note was uploaded on 06/15/2009 for the course MAE 4310 taught by Professor Staff during the Fall '08 term at UT Arlington.

Page1 / 11

solution_hw_5 -...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online