Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer the following questions using MATLAB CODING ONLY. Show all work!!! A. (5 points) A marathon is 42 kilometers. Runners like to calculate their

Please answer the following questions using MATLAB CODING ONLY. Show all work!!! image text in transcribed
A. (5 points) A marathon is 42 kilometers. Runners like to calculate their average speed based on the time they would like finish the marathon. Write a function called marathonSpeed that will accept a vector of different runners' target completion times in whole number of minutes; the function returns a vector of the average speed in kms/hour corresponding to each completion time. Call your function with a vector argument of at least three different completion times, and assign the returned valued to a variable call myAvgSpeed. If you were to add error checking, what error checking should you do on the argument? Create a test table and write matlab function to solve the problem. Design will be done in lecture or lab. Sample Data Expected Result (manually calculate) Verified? B. (5 points) An advanced turboprop engine, called an un-ducted fan (UDF), is one of the promising new propulsion technologies for transport aircraft. As the speed ofthe plane increases (accelerates) the aerodynamic drag increases in proportion to the square of the air speed. Eventually the aircraft reaches a new cruise speed where the thrust from the UDF engines is just offset by the drag The equations used to estimate the velocity and acceleration from the time the throttle is engaged until the plane reaches cruising speed (at approx 120 seconds) are the following: velocity a 0.00001 *time cubed 0.00488 time squared 0.75795 time 1813566 acceleration 3-0.000062 velocity squared Write an m-file script called UDF.m that calculates and displays a table of time, velocity and acceleration for times from 0 to 120 in 10 second intervals. Design will be done in lecture or lab

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