Write a MATLAB program that completes the following tasks 1

Write a MATLAB program that completes the following tasks: 1. Load the data from the “fuel_totalizer.txt” file into a matrix. 2. Use a for loop to calculate the quantity of fuel consumed during each minute of the flight. Write the output in lbs to a new matrix. Think carefully about how you will make this calculation for the first minute. 3. Use your for loop to also calculate the average fuel flow rate in pounds per second (lbs/s) for each minute of the flight. Write the output to a new matrix. 4. Use your for loop to find the total fuel consumption through the flight. Check to make sure this total is correct. 5. Calculate the average fuel consumption rate for the entire flight in lbs/hour. 6. The rate of fuel consumption is much higher when the aircraft is taking off and climbing to cruising altitude. Assuming the fuel flow rate is at least 1.5 times the average rate during takeoff and climb, how many minutes did the takeoff and climb phase of the flight last? You will want to restrict this search to the first half of the dataset. Bonus: Use a for loop to find the maximum fuel flow rate in lbs/s, and report the rate and the minute when it occurs.

Solution

The first step of your homework instructions say \"1. Load the data from the “fuel_totalizer.txt” file into a matrix.\" What action does that tell you to do? [Think basic: a one word answer.] If you\'re not sure how to perform that action in MATLAB, one way to find out commands that can help you do that is to search the documentation. You can open the documentation using the command:

doc

Search for that action word, and try using the function or functionality described on the documentation pages. Repeat this for the rest of the steps. If you\'re not sure even what to search for on a particular step, try breaking it down into smaller pieces.

If you get stuck on a particular step, show the readers what you\'ve done on previous steps and describe what you tried for the step on which you\'re having difficulty. We can offer suggestions for how to work around or eliminate the part that\'s blocking you.

https://www.dropbox.com/s/i5bo4kfra69yf43/fuel_totalizer.txt?dl=0

Undefined? or unable to open file? Is the file in your Matlab folder?

I have put the file in my Matlab folder and entered

importdata(\'fuel_totalizer.txt\')

and it has loaded OK

Write a MATLAB program that completes the following tasks: 1. Load the data from the “fuel_totalizer.txt” file into a matrix. 2. Use a for loop to calculate the

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site