Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. (10 points) In the absence of air resistance, the Cartesian coordinates of a projectile launched with an initial velocity to (m/s) and angle (degrees)

image text in transcribed
1. (10 points) In the absence of air resistance, the Cartesian coordinates of a projectile launched with an initial velocity to (m/s) and angle (degrees) can be computed with x = to cos(a)t where g is the gravitational acceleration (= 9.81 m/s) and t is the time (s). Assume that to = 5 m/s and write well-commented MATLAB code to generate a plot of the projectile's trajectory for various initial angles ranging from 15 to 75 in increments of 15. Note that is in degrees and so use the appropriate MATLAB functions, sind and cosd, to obtain the corresponding trigonometric values. Generate a vector for t from 0 to 3 seconds in increments of 1/128 s. Write MATLAB code to generate a single plot of the height achieved (y) versus horizontal distance (x) for each of the initial angles. Label the axes appropriately and use a legend to distinguish among the different cases. Scale the plot such that the minimum height is zero using the axis command. The following plot shows two such trajectories corresponding to launch angles of 45e and 60, respectively Projecile Motion 0.9 tnitiai angie 60 0.7 0.6 0.4 02 0 1 0.5 2.5 Horzontal distance. . (m)

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

Students also viewed these Databases questions