Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(Use Matlab) Problem 4 (20 pts). The trajectory of the ball you throw is governed by the equation, X Vo*cos(theta*t), y- Vo*sin(theta*t) - g*t*2 where
(Use Matlab) Problem 4 (20 pts). The trajectory of the ball you throw is governed by the equation, X Vo*cos(theta*t), y- Vo*sin(theta*t) - g*t*2 where x and y is the coordinate of the ball at time t. vo is the initial velocity of the bal, theta is the launching angle of the ball. g is gravitational constant 9.81 Ball 1 : Vo=10, theta-30 deg (You should draw this with red solid line) Ball2: Vo 15, theta-45 deg (You should draw this with blue dotted line) (a) Write a code to plot that shows trajectories of two balls in the same figure. (Hint: You should convert deg to radian first. You can use hold command to plot two trajectories at the same time.)
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