Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assuming negligible air resistance, for the gravitational constant (g) (take g= 9.81 m/s), an initial velocity (Vo) in [m/s], and an angle of departure (0)

image text in transcribed

image text in transcribed

Assuming negligible air resistance, for the gravitational constant (g) (take g= 9.81 m/s), an initial velocity (Vo) in [m/s], and an angle of departure (0) in [deg] (here, let's assume 0 0-90), the position of the projectile launched from the origin (xo.yol -I0,0]) is given as follows: x = Vo cos(0)t y = Vo sin(0)t--gt2 Utilizing modular programming, complete the following tasks: a) (5 pts) Write a user-defined MATLAB function named projectile inputs, which prompts and checks the user inputs of the initial velocity (Vo) in [m/s], angle of departure (0) in [deg], and the instantaneous time (t) in [s]. Please remember to check all applicable conditions for the user inputs. b) (12 pts) Write a user-defined MATLAB function named projectile motion, which calculates and outputs o o o o the total flight time (to) the total horizontal traveled distance (also known as the range (R)) the maximum height (H) the instantaneous position (lx,y]) of the projectile at a given time (t) from the user input. c) (10 pts) Write a user-defined MATLAB function named projectile_ trajectory, which plots together the trajectory of the projectile from the time it is launched to the time it lands on the ground (assuming the projectile cannot penetrate the surface of the earth) the instantaneous position ([x,y]) of the projectile at a given time (t) from the user input. o o Please remember to label the axes, add legends, and title your plot. d) (3 pt) In your main script, call three functions to study the projectile motion. Hint: Here is a useful resource for information regarding projectile motion: http:/hyperphysics.phy-astr.gsu.edu/hbase/traj.html:b

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Moving Objects Databases

Authors: Ralf Hartmut Güting, Markus Schneider

1st Edition

0120887991, 978-0120887996

More Books

Students also viewed these Databases questions

Question

Differentiate the function. r(z) = 2-8 - 21/2 r'(z) =

Answered: 1 week ago

Question

=+2 Why did OBI create Centers of Excellence?

Answered: 1 week ago