Answered step by step
Verified Expert Solution
Question
1 Approved Answer
MATLAB The distance that a projectile will travel when fired at an angle is a function of time and can be separated into horizontal and
MATLAB
The distance that a projectile will travel when fired at an angle is a function of time and can be separated into horizontal and vertical components according to the following formulas: horizontal (t) = t V_0 cos(theta) vertical(t) = t V_0 sin(theta) - 1/2 gt^2 Where, horizontal = distance traveled in the x direction, m vertical = distance traveled in the y direction, m V_0 = initial velocity, m/s g = acceleration due to gravity, 9.81 m/s^2 t = time, s a. Compute the trajectories for two projectiles over 15 seconds with a launch speed of 100 m/s and launch angles of 30 and 45 degrees, respectively. b. Co-plot both trajectories on the same axis. Vertical distance should be on the y axis, and horizontal distance on the x axis. Use a legend to identify the trajectories. c. Find the maximum height of each trajectory. Print the results using fprintf()Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started