Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Matlab R2019a 2. (30 Points) The trajectory of a toy missile in (x,y) coordinates can be modeled as: y = y + tan(@.)x- cos(.))

In Matlab R2019aimage text in transcribed

2. (30 Points) The trajectory of a toy missile in (x,y) coordinates can be modeled as: y = y + tan(@.)x- cos(.)) where, y, is the initial elevation, is the initial angle of the missile in radians, v. = 45 m/s is the initial velocity, the horizontal distance the missile flies is 120m. The initial elevation of the missile is 1m and it hits a practice target at 2m above the ground. The missile will be launched on Venus where the acceleration due to gravity is 8.87 m/s. a. Plot the function of @ for 10 s key on the keyboard and then typing 0176 on the numeric area of the keyboard will produce a degree symbol (). b. Use the fprintf function to print out the answer to the question: "How many solutions exist?" c. Compute an approximation for the appropriate initial angle(s) e, at which the missile can take off and still hit the target 2m above the ground using your bisect function and the fzero function. If there is more than one solution, be sure to find them all. Use the fprintf function to print out a table like the one shown below. Add a row for each zero of the function. Zero # Ezero Bisect ----------- xx.xxxxxxxx xx xxxxxxxx xxxxxxxxxx xxxxxxxxxx Page 1 of 3 MAE 284 MATLAB Homework Assignment #2 (110 points, 10 point bonus) d. Plot the solutions on the plot of the function of e, in the plot from part a. Use an asterisk for the bisect solution and a circle for the fzero solution. If there is more than one solution, use a different color for each solution. Be sure to include a legend in the lower left corner. e. Plot the trajectory of the toy missile in (x,y) coordinates for both of the solutions obtained using the fzero function. Put both plots in a single new figure (but not subplot). Be sure to include a legend with entries for each solution that look like this: Trajectory for @ = XX.XXXX

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_2

Step: 3

blur-text-image_3

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

Database Horse Betting The Road To Absolute Horse Racing 2

Authors: NAKAGAWA,YUKIO

1st Edition

B0CFZN219G, 979-8856410593

More Books

Students also viewed these Databases questions

Question

How would you describe Mark Zuckerberg as a team leader?

Answered: 1 week ago