Question: Projectile motion is a common problem in physics. The height, y , of a projectile that is sent off with an initial velocity v 0

Projectile motion is a common problem in physics. The height, y , of a projectile that is sent off with an initial velocity v 0 and angle is defined as a function of time, t : y = 1 2 gt 2 + v 0 sin( ) t + y 0 where t is the time of motion in seconds, g is the gravitational constant (9 . 8 m/s 2 ), and is the angle at which the projectile is launched. In this formula, height is in meters and v 0 is in (m/s). Similarly, the horizontal distance that the projectile travels is computes using the following: x = v 0 cos( ) t + x 0 where x is in meters. x and y are two-dimensional coordinates that trace the trajectory of a projectile. Lets use x 0 = y 0 = 0, meaning that the projectile is launched from the origin (0,0). Lets assume an initial velocity of 10 m/s, and try several different launch angles from 15 to 90 degrees in steps of 15 degrees. To compute x and y you will also need to select values for time: t = 0:0.01:2 . Write a function called projectile_motion that creates a plot of the trajectories for the six different launch angles. Use solid lines without markers. Color lines according to the following: Trajectory Color RGB ---------- -------- ------- 15 degrees Blue [0 0 1] 30 degrees Red [1 0 0] 45 degrees Magenta [1 0 1] 60 degrees Green [0 1 0] 75 degrees Cyan [0 1 1] 90 degrees Yellow [1 1 0] Be sure to start with a blank figure window, figure(1); clf; in the code above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!