EngE_1114_HW7

# EngE_1114_HW7 - 12:20 M | 1 EngE 1114 HW7 | 12 February...

• Notes
• 4
• 100% (1) 1 out of 1 people found this document helpful

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

1) Given: V 0, and α Required: Flowchart, MatLab code, sample run Relationships: g = 9.81 m/s 2 Solution:   % This function will output a table of values for the x and y % positions of a projectile at time t. % Call statement: projectile_motion g = 9.81; a = input ( 'Enter the launch angle in degrees: ' v = input ( 'Enter the initial launch velocity:   ' T = (2*v*sind(a))/g; fprintf ( ' TIME   |   x      |  y  ' ); for  t = 0:(T/20):T;     x = (v*cosd(a)*t);     y = (v*sind(a))*t-.5*(g)*(t^2);     fprintf ( '\n  %.2f  |   %.2f   | %.2f\n' , t,x,y); end >> projectile_motion Enter the launch angle in degrees: 60 Enter the initial launch velocity: 15 TIME | x | y 0.00 | 0.00 | 0.00 0.13 | 0.99 | 1.63 0.26 | 1.99 | 3.10 0.40 | 2.98 | 4.39 0.53 | 3.97 | 5.50 0.66 | 4.97 | 6.45 0.79 | 5.96 | 7.22 0.93 | 6.95 | 7.83 1.06 | 7.95 | 8.26 1.19 | 8.94 | 8.51 1.32 | 9.93 | 8.60 1.46 | 10.92 | 8.51 1.59 | 11.92 | 8.26 1.72 | 12.91 | 7.83 1.85 | 13.90 | 7.22 1.99 | 14.90 | 6.45 2.12 | 15.89 | 5.50 2.25 | 16.88 | 4.39 2.38 | 17.88 | 3.10 2.52 | 18.87 | 1.63 2.65 | 19.86 | 0.00 12:20 M | EngE 1114 HW7 | 12 February, 2006 | Konzik, Kit | /

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

START g = 9.81 INPUT: v a T = 2●v●sin (a)/g For t from 0 to T incremented by T/20 x = v●t●cos(a) OUTPUT: t x y OUTPUT: v a STOP
This is the end of the preview. Sign up to access the rest of the document.
• Fall '06
• TWKnott
• matlab, Jx, sumx, initial launch velocity

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern