Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Download the file MPG.dat from the course website. This is a two-column data file. The 53 31.0 first column is the day since 1

 

Download the file MPG.dat from the course website. This is a two-column data file. The 53 31.0 first column is the day since 1 July 2008, and the second is the gas mileage (in miles per gallon) of a particular car since the last time the tank was filled. 64 30.8 73 29.8 Make a one-page figure with three plots on it. The first plot should be in the upper half of the page, and graph the gas mileage as a function of day. Make the data points little circles, and do not connect them with lines. Set the axis limits from zero to 1200 for the days, and 20 to 40 for the mileage. Label the axes "Day since July 1, 2008" and "MPG". 84 30.5 92 30.0 101 28.8 105 31.6 You will need the MATLAB commands load, subplot, axis, xlabel, and ylabel for this part, as well as some other commands you have already seen. 108 34.0 112 32.1 120 29.3 The second and third plots are in the lower left and lower right portions of the page. They should be histograms of the gas mileage, for certain periods of time. The lower left should histogram the mileage for the period January and February months, and the lower right should histogram the mileage for July and August. For each plot, include a title that gives the average mileage + its standard deviation, for that time period. 124 32.9 127 31.4 136 28.9 143 28.4 You will need the MATLAB commands datenum, find, hist, stairs, title, and num2str for this 151 28.0 part, as well as some other commands you have already seen. You may also find it useful to use the mod command, so that you can pick out days modulo 365; this makes it easier to select the months independent of the year. 158 26.1 168 25.5 181 25.0 193 24.8 204 24.8 All you need to turn in is a figure of your one page with the three plots, saved in whatever format you like. 210 27.3 217 26.3 226 26.4 237 27.1 253 28.3

Step by Step Solution

3.44 Rating (167 Votes )

There are 3 Steps involved in it

Step: 1

MATLAB Code for plotting given requirements is given below Comments are included in the code for bet... 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

Recommended Textbook for

Mathematical Applications for the Management Life and Social Sciences

Authors: Ronald J. Harshbarger, James J. Reynolds

11th edition

9781337032247, 9781305465183, 1305108043, 1337032247, 1305465180, 978-1305108042

More Books

Students also viewed these Mathematics questions

Question

Explain what the "management approach" used in IFRS 8 means.

Answered: 1 week ago