how to draw diagram of projectile motion. Can someone gime me the detailed information?

3 views (last 30 days)
In the absence of air resistance, the Cartesian coordinates of a projectile launched with an initial velocity v0 (m/s) and angle θ0 (degrees) can be computed with x = v0 cos(θ0)t, y = v0 sin(θ0)t − 0.5gt2, where g is the gravitational acceleration (= 9.81 m/s2) and t is the time (s). Assume that v0 = 8 m/s and write a well commented MATLAB script to generate a plot of the projectile’s trajectory for various initial angles ranging from 60◦ to 75◦ in increments of 5◦. Note that θ0 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 0s to 8s in increments of 1/128s. 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 60◦ and 75◦, respectively.

Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!