{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ENME271Test4Summer09Sol

# 50 060 080 vfts 4000 3000 2000 h 174780 84115 28876

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

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

Unformatted text preview: Q. c..~"",,- l1.-.4.. C' __ -tl.-a. ""....rt-~ l \ Prob % Prob 2 format bank D=[0.5 0.6 0.8]; V=[40 30 20]; L=130; f=inline('0.316./(V.*D./10^f=inline('0.316./(V.*D./10^-5).^0.25'); F=f(V,D); h=F.*V.^2/2*L./D; disp(' D(ft) V(ft/s) disp(' ') disp([D',V',h']) clear all h') D(ft) 0.50 0.60 0.80 V(ft/s) 40.00 30.00 20.00 h 1747.80 841.15 288.76 Prob 3 function Y=T4P3(x,y) Y=[y(2);2*y(1)-y(2)]; clear clear all [x,y]=ode45('T4P3',0:0.2:1,[1,0]); disp(' x y') disp(' ') disp([x,y(:,1)]) clear all x 0 0.20 0.40 0.60 0.80 1.00 y 1.00 1.04 1.14 1.32 1.55 1.86 Prob4 t=0:1:5; t=0:1:5; V=[0 0.5 2 4.5 8 12.5]; a=0:1:5; plot(t,V,'plot(t,V,'k^','linewidth',2,'markersize',6,'markerfacecolor','r','markeredgecolor','r') hold on plot(t,a,'-plot(t,a,'-ko','linewidth',2,'markersize',6,'markerfacecolor','b','markeredgecolor','b') xlabel('t(sec)'),ylabel('V(ft/s), xlabel('t(sec)'),ylabel('V(ft/s), a(ft/sec*sec)') title('Velocity and Acceleration vs Time') legend('V vs t','a vs t',0)...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online