Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In MATLAB 2. (40 Points) The trajectory of a toy missile in (x.y) coordinates can be modeled as: yo + tan(00)s-2 (to cos(00)) y where,

In MATLAB image text in transcribed
image text in transcribed
2. (40 Points) The trajectory of a toy missile in (x.y) coordinates can be modeled as: yo + tan(00)s-2 (to cos(00)) y where, a, is the initial angle of the missile in radians, v,-25 m/s is the initial velocity, the horizontal distance the missile flies is 105m. The initial elevation of the missile is 1.5m and it hits a practice target at 2m above the ground. The missile will be launched on Mars where the acceleration due to gravity is 3.771 m/s2 a. Plot the function of t, for 10. a, 80.. Be sure to label the axes. Note that x label ( ' \theta ' ) will produce a on the x axis. The x axis should be in degrees. Use the fprintf function to print out the answer to the question: "How many solutions exist?" Compute an approximation for the appropriate initial angle(s) 0% at which the missile can take off and still hit the target 2m above the ground. If there is more than one solution, be sure to b. c. find them all. d. Use the fprintf function to print out a table like the one shown below. Add a row for each zero of the function. Zero Bisect Fzero e. Plot the solutions on the plot of the function of 0 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 the asterisk (and circle) for each solution. Be sure to include a legend in the lower left corner. 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) f. 2. (40 Points) The trajectory of a toy missile in (x.y) coordinates can be modeled as: yo + tan(00)s-2 (to cos(00)) y where, a, is the initial angle of the missile in radians, v,-25 m/s is the initial velocity, the horizontal distance the missile flies is 105m. The initial elevation of the missile is 1.5m and it hits a practice target at 2m above the ground. The missile will be launched on Mars where the acceleration due to gravity is 3.771 m/s2 a. Plot the function of t, for 10. a, 80.. Be sure to label the axes. Note that x label ( ' \theta ' ) will produce a on the x axis. The x axis should be in degrees. Use the fprintf function to print out the answer to the question: "How many solutions exist?" Compute an approximation for the appropriate initial angle(s) 0% at which the missile can take off and still hit the target 2m above the ground. If there is more than one solution, be sure to b. c. find them all. d. Use the fprintf function to print out a table like the one shown below. Add a row for each zero of the function. Zero Bisect Fzero e. Plot the solutions on the plot of the function of 0 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 the asterisk (and circle) for each solution. Be sure to include a legend in the lower left corner. 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) f

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

Step: 3

blur-text-image

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

Beginning VB.NET Databases

Authors: Thearon Willis

1st Edition

1594864217, 978-1594864216

More Books

Students also viewed these Databases questions

Question

List the components of a business model of a business problem.

Answered: 1 week ago

Question

2. Enrolling employees in courses and programs.

Answered: 1 week ago

Question

1. Communicating courses and programs to employees.

Answered: 1 week ago

Question

6. Testing equipment that will be used in instruction.

Answered: 1 week ago