Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 2 Goal: Calculate and plot the height and distance of a projectile traveling through the air. The height h (m) and distance x (m)

image text in transcribed

Problem 2 Goal: Calculate and plot the height and distance of a projectile traveling through the air. The height h (m) and distance x (m) of a projectile traveling through the air can be calculated with the following equations: h = vt sin (A- ) - gf? x= vt cosA where v is the speed (10 m/s) t is the time (s) A is the initial angle (60 degrees) g is the acceleration due to gravity (9.81 m/s^2) Your MATLAB code should complete the following tasks: Define variables for the constants defined above. Create a vector of time values 1. The vector should contain values between 0 and 1.75 seconds. You can choose the number of values in the vector as long as the plot curves are smooth. Calculate the height h (m) and distance x (m) of the projectile. NOTE: The angle is defined in degrees. Create a figure with two subplots to show the results. In subplot 1, plot the time on the x-axis and the height on the y-axis. In subplot 2, plot the time on the x-axis and the distance on the y-axis. . You should plot EACH curve using a different Line Spec (line style, marker style, line color and/or line width) combination that you choose EXCEPT for the default solid line. Points WILL be deducted if you only use the default solid lines (as shown below) or if you use the same Line Spec options for all curves. Create x and y labels for each subplot. You do not have to specify a title for each subplot (but you can). Set the x and y axes limits of each subplot to match the figure. You do NOT have to replicate the x-tick or y-tick values shown in the example figure (but you can). You must perform all formatting tasks using MATLAB commands in your code. You will not get credit if you modify your figure after running the code. Solution figure: 45 12 Tess Solution % Clear variables from workspace clear % Type code here

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

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions

Question

What are the main objectives of Inventory ?

Answered: 1 week ago

Question

Explain the various inventory management techniques in detail.

Answered: 1 week ago