You are a young engineer preparing a construction project in
You are a young engineer preparing a construction project in a remote location. Much of the construction is outdoors, yet little weather data exists for the site. Luckily, you have been provided some raw data, but, it is merely a data file containing four rows of data, each associated with the month of each column. Given this data file, create a temperature plot for your project manager\'s presentation. MATLAB is an extremely effective and easy plotting tool, Make a Plot, Temperatures (average high and low) vs month of year, to visually capture this data, Your manager will of course want the data in English units. When you load the data file weather.dat, make sure you save your new matrix weather lastname remember, when you load weather, dat, MATLAB will automatically create a matrix and save it to a variable with the same name (i.e. \"weather\"), you need to rename this matrix \"weather_lastname\". Save your MATLAB file Problem_Set_8_4_lastname.
Solution
clc;
clear all;
close all;
weather_lastname=load(\'weather.dat\'); % loading data file
figure;
plot(weather_lastname(3,:),weather_lastname(1,:)); % ploting temp vs months
title(\'Average Monthly High Temperature\');
xlabel(\'Months\');
ylabel(\'Temperature in degrees celsius\');
figure;
plot(weather_lastname(3,:),weather_lastname(2,:));
title(\'Average Monthly Low Temperature\');
xlabel(\'Months\');
ylabel(\'Temperature in degrees celsius\');
figure;
plot(weather_lastname(3,:),weather_lastname(4,:));
title(\'Average Monthly Rainfall\');
xlabel(\'Months\');
ylabel(\'Rainfall in centimeters\');
