Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problems 1 -3 are based on the following information. An object is launched with an angle 0 and initial velocity Vo and travels a horizontal

image text in transcribed

Problems 1 -3 are based on the following information. An object is launched with an angle 0 and initial velocity Vo and travels a horizontal distance x during a time of flight, t. The time of flight (t) is described as: t- horizontal distance traveled by an object to a point at the same height is Vo sin(e) g/2 where g 9.8 m'ls. The corresponding X-Vo * cos(0) *t 1. M-file function with single input and output Create an M-file function distance! that accepts , in degrees, as your input and returns the horizontal distance traveled by the object. For this case, consider an initial velocity of Vo is 7 m/s a. b. Using the distance! and the plot command, plot distance versus from 0 to 900. c. Using the function distancel, examine the effect of uncertainty in the launch angle on the corresponding horizontal distance of travel by performing the following calculation. Generate 100 random (Gaussian) values of with an average of 40and a standard deviation of 4. Find the corresponding mean and standard deviation for x using these random numbers 2. Anonymous functiorn Create an anonymous function called distances that accepts as your input and returns the horizontal distance traveled by the object. Use an initial velocity of Vo-14 m/s. a. b. Using distance2 and thefplot command, plot distance versus from 0 to 90% c. Use the fiminbnd to determine 0 giving the greatest travel distance. Recall that fminbnd is a function that requires a function input or function handle. Hint: You are being asked to find the maximum distance OR the minimum of the negative distance. Clearly name the variables representing the answer 0 and the corresponding greatest distance 3. M-file function with multiple inputs and outputs a. Create an M-file function distance3 that accepts 0 and Vo as input and returns x and t as outputs Using distance3 and the meshgrid command, determine the value of x and t for between 0 and 90(in increments of 10) and Vo between 1 and 10 m/s (in increments of 1 m/s) Plot x versus Vo and t versus vo on a single plot (double y-axis) at = 40. Add a title b. c

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

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions