{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# Lab6 - t=linspace(0,2*pi,76 plot(t,exp-0.3*t(2*cos(2*t...

This preview shows pages 1–4. Sign up to view the full content.

Exercise 1 x=linspace(0,50,76) plot(x,30-20*exp(-x/10),'g:s') For large values of t , y tends towards 30. Exercise 2 t=linspace(-2,2,76) plot(t,4./(2+exp(-2*t)),'b:x') For large values of t , y tends towards 2. Exercise 3 t=linspace(0,2*pi,76) plot(t,3*cos(3*t)+5*sin(3*t),'b:x') hold on

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

View Full Document
plot(t,3*cos(3*t)-5*sin(3*t),'r:s') There is a noticeable difference in graphs; the second begins with a different phase angle. Exercise 4 t=linspace(0,20,76) plot(t,12*exp(-0.3*t)-6*exp(-0.5*t),'b:s') For large values of t , y tends towards 0. Exercise 5

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

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

Unformatted text preview: t=linspace(0,2*pi,76) plot(t,exp(-0.3*t).*(2*cos(2*t)+4*sin(2*t)),'b:s' plot(t,exp(-0.3*t).*(2*cos(2*t)-4*sin(2*t)),'b:s') a) The graph decaying over time indicates that the spring-mass system is under-damped. b) 76-32 ans = 44 t=3.6024 t = 3.6024 y=exp(-0.3*t).*(2*cos(2*t)+4*sin(2*t)) y = 1.4916 c) Exercise 6 t=linspace(0,10,76) plot(t,exp(-0.3*t).*(2*cos(2*t)+4*sin(2*t)),'b:s') plot(t,exp(-0.3*t).*(2*cos(2*t)-4*sin(2*t)),'r:x') grid on Half the vertical dist approx 1.1/2=.55....
View Full Document

{[ snackBarMessage ]}