Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Matlab Programming Assignment If we assume negligible air friction and ignore the curvature of the Earth, a ball that is thrown into the air from
Matlab Programming Assignment
If we assume negligible air friction and ignore the curvature of the Earth, a ball that is thrown into the air from any point on the Earth's surface will follow a parabolic flight path. The height of the ball at any time t, after it is thrown is given by Eq. 1. 1 y(t) = Yo + vyot +3gt2 Eq. 1 where y, is the initial height of the object above the ground, Vyo is the initial vertical velocity of the object and g is the acceleration due to the Earth's gravity. The horizontal distance (range) traveled by the ball as a function of time after it is thrown is given by Eq. 2. x(t) = xo + Vxot Eq. 2 where xo is the initial horizontal position of the ball on the ground and Vxo is the initial horizontal velocity of the ball. If the ball is thrown with some initial velocity v, at an angle of 0 degrees with respect to the Earth's surface, then the initial horizontal and vertical components of velocity will be Vxo = vocose Eq. 3 Vyo = v sine Eq. 4 Assume that the ball is initially thrown from position (xo,yo) = (0,0) with an initial velocity V, of 20 meters per second at an initial angle of 0 degrees. Write a program that will plot the trajectory of the ball and also determine the horizontal distance traveled before it touches the ground again. The program should plot the trajectories of the ball for all angles 0 from 0 to 90 in 1 steps. Finally, it should determine the angle & that maximizes the range of the ball and plot that particular trajectory in a different color with a thicker line. Shows your steps starting from problem restatement until you get theStep 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