Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a script that does the actions listed below. Make sure to include a proper header including your name at the top of the script

Create a script that does the actions listed below. Make sure to include a proper header including your
name at the top of the script and publish the script into a pdf file. Be sure to follow the homework
requirements.
image text in transcribed
(30 Points) The trajectory of a toy missile in (X.) coordinates can be modeled as the parabola y(x) = x + x + 19 where cos a, tance) ayo and % = 5 m is the initial elevation, 0, is the initial angle of the missile in radians, *, -50 m/s is the initial velocity the horizontal distance the missile fles is 200m, the missie hits a practice target at Im above the ground. The missile will be launched on Venus where the acceleration due to gravity is 8.87 m/s? a Since the only unknown in equation [1] is the initial angle .. rearrange equation [] to be in the form of a function of , and plot it for for 10S S 80 Be sure to label the axes and turn on the grid (see help on the grid function). Note that xlabel('\theta) will produce a on the x axis. Even though 8, is in radians, the x axis should be in degrees. Also note that holding down the key on the keyboard and then typing 0176 on the numeric area of the keyboard will produce a degree symbol ("). Page 1 of 3 MAE 284 MATLAB Homework Assignment #2 (110 points, 10 point bonus) 6. Use the fprinte function to print out the answer to the question: "How many solutions exist?" cCompute an approximation for the appropriate initial angle(s) , at which the missile can take off and stil hit the target im 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. Zoro + Bisect Pzero 2 XX.XXXXXXXX XX.XXXXXXXX XX.XXXXXXXX XX.XXXXXXXX d. Plot the solutions on the plot of the function of in the figure 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 comer. e. Plot the trajectory of the toy missile in (x,y) coordinates for both of the solutions obtained using the frero 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 8, XXX (30 Points) The trajectory of a toy missile in (X.) coordinates can be modeled as the parabola y(x) = x + x + 19 where cos a, tance) ayo and % = 5 m is the initial elevation, 0, is the initial angle of the missile in radians, *, -50 m/s is the initial velocity the horizontal distance the missile fles is 200m, the missie hits a practice target at Im above the ground. The missile will be launched on Venus where the acceleration due to gravity is 8.87 m/s? a Since the only unknown in equation [1] is the initial angle .. rearrange equation [] to be in the form of a function of , and plot it for for 10S S 80 Be sure to label the axes and turn on the grid (see help on the grid function). Note that xlabel('\theta) will produce a on the x axis. Even though 8, is in radians, the x axis should be in degrees. Also note that holding down the key on the keyboard and then typing 0176 on the numeric area of the keyboard will produce a degree symbol ("). Page 1 of 3 MAE 284 MATLAB Homework Assignment #2 (110 points, 10 point bonus) 6. Use the fprinte function to print out the answer to the question: "How many solutions exist?" cCompute an approximation for the appropriate initial angle(s) , at which the missile can take off and stil hit the target im 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. Zoro + Bisect Pzero 2 XX.XXXXXXXX XX.XXXXXXXX XX.XXXXXXXX XX.XXXXXXXX d. Plot the solutions on the plot of the function of in the figure 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 comer. e. Plot the trajectory of the toy missile in (x,y) coordinates for both of the solutions obtained using the frero 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 8, XXX

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 Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions

Question

7. What decisions would you make as the city manager?

Answered: 1 week ago

Question

8. How would you explain your decisions to the city council?

Answered: 1 week ago