Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Matlab homework Dalby 2017-7.csv file is below Date Minimum temperature (C) Maximum temperature (C) Rainfall (mm) Evaporation (mm) Sunshine (hours) Direction of maximum wind gust

Matlab homework

Dalby 2017-7.csv file is below

Date

Minimum temperature (C) Maximum temperature (C) Rainfall (mm) Evaporation (mm) Sunshine (hours) Direction of maximum wind gust Speed of maximum wind gust (km/h) Time of maximum wind gust 9am Temperature (C) 9am relative humidity (%) 9am cloud amount (oktas) 9am wind direction 9am wind speed (km/h) 9am MSL pressure (hPa) 3pm Temperature (C) 3pm relative humidity (%) 3pm cloud amount (oktas) 3pm wind direction 3pm wind speed (km/h) 3pm MSL pressure (hPa)
01-07-2017 2.2 19.7 0 ESE 26 09:30 10.9 77 ESE 13 1027.1 18.6 28 S 11 1024.7
02-07-2017 2 21 0 ESE 24 09:49 11.3 71 ESE 9 1027.2 20.4 28 E 9 1022.4
03-07-2017 4.9 21.4 0 NNW 41 11:48 12.2 82 SE 6 1023.3 21.3 49 NNW 22 1019.1
04-07-2017 9.5 25.3 1 NW 44 13:34 17.1 80 NNW 24 1021.1 24.4 33 WNW 30 1017.2
05-07-2017 8.6 25 0 SW 37 13:52 16.5 77 NNW 13 1020.3 16.7 71 SSW 24 1016.6
06-07-2017 5.5 21.8 3.6 WNW 26 13:34 12.6 83 WSW 2 1020.6 20.2 40 W 17 1016.7
07-07-2017 9.5 18.9 1.8 NW 35 13:07 12.9 91 SE 7 1016.9 18.3 83 NW 20 1014
08-07-2017 3.2 19.2 1.8 WSW 31 13:18 11.7 68 WNW 13 1020.4 18.5 25 WSW 17 1018.1
09-07-2017 1.7 18.7 0 SE 19 11:12 10 68 SE 7 1022.7 17.9 29 SW 4 1020.4
10-07-2017 7.8 16.9 0 SSW 28 14:22 12.7 57 SE 7 1025.9 15.8 38 S 15 1024
11-07-2017 8 20.1 2.2 SW 43 14:01 13 64 SE 7 1028.4 19.4 22 SSW 20 1025.1
12-07-2017 1.9 20.8 0 ESE 31 14:58 11.1 72 SE 13 1029.7 19.4 33 ESE 22 1025.1
13-07-2017 4.9 21 0 ESE 30 09:38 12.2 76 ESE 17 1027.1 18.8 40 ESE 9 1023.1
14-07-2017 3.3 22.3 0 NNW 33 13:46 13.4 75 Calm 1023.6 21 30 WNW 17 1019.7
15-07-2017 8.5 24 0 NNW 50 10:00 16.4 76 NNW 24 1021.9 22 42 NNW 28 1017.4
16-07-2017 11.7 20.4 19.6 ENE 30 04:46 14.6 85 SSW 11 1021.3 19.8 52 SE 9 1018.9
17-07-2017 7.8 23.3 0.2 NNW 39 14:06 15 83 NNW 9 1022.3 22.6 50 NW 22 1018.4
18-07-2017 10.4 25.1 0 NNW 50 12:11 19.2 56 N 28 1020.3 24.6 42 NW 24 1015.1
19-07-2017 8.7 17.5 1 W 65 13:35 12.1 50 WSW 24 1016.8 16.6 32 WSW 37 1012.8
20-07-2017 3.3 18 0 SW 48 14:01 11.3 68 SW 15 1019.9 17.4 31 SW 24 1016.7
21-07-2017 -1.1 19 0 SW 30 13:43 8.5 58 S 6 1021.5 18.4 14 SSW 20 1018
22-07-2017 -1.4 19.7 0 W 22 14:09 9 53 SE 2 1024.7 19 20 NE 7 1020.1
23-07-2017 0.9 21.5 0 NW 31 10:35 13.7 66 NNW 11 1023.1 20.8 23 W 17 1018.5
24-07-2017 -0.5 23.1 0 SW 30 15:33 11.2 50 W 2 1023.6 22.8 15 SSW 11 1020.4
25-07-2017 -0.3 22.2 0 SW 31 12:59 11.5 47 Calm 1025.5 21.6 18 SSW 19 1021.6
26-07-2017 0.8 24.3 0 SW 30 14:10 12.2 43 SE 6 1024.6 23.9 16 SSW 19 1020.6
27-07-2017 1.9 24 0 SSW 37 13:16 14.8 37 NNW 2 1024.7 23.3 17 SSW 11 1021
28-07-2017 3.1 25.8 0 NNW 46 09:35 18.4 51 NNW 30 1023.4 25.5 16 SSW 24 1019.7
29-07-2017 2.4 24.7 0 SW 39 13:40 14.5 38 NNW 7 1023.1 24.4 11 WSW 20 1019.6
30-07-2017 1.9 26.3 0 WNW 28 11:55 15.1 35 NNW 7 1022.9 25.8 16 NW 15 1018.3
31-07-2017 6.6 25.7 0 NW 44 11:54 19.1 52 NNW 28 1022.7 25.1 22 W 30 1018.4

Matlab home work:

Recordings from the Bureau of Meteorology of the weather in Dalby have been made. Yourtask is to analyse the data to identify the behaviour of the weather for the period of measurements. The data is stored in the file ass1in.zip; each file contains a month of data and is named according to the year and month of the measurements. One of the quantities of interest is the air density, which can found using the ideal gas law:

rho = p/RT

where p is the pressure, the ideal gas constant for air is R= 286.9 J/kg.K, and T is the temperature (in SI units).

2 Requirements

For this assessment item, you must perform hand calculations:

1. For the first 3 days and last 2 days of July 2017, find how much hotter the maximum temperature was than the minimum temperature for the same day.

2. For the first 3 days of July 2017, calculate the air density at 9:00 a.m.

3. Determine when in July the cumulative rainfall for the month exceeds 7 mm.

You must also produce MATLAB code, stored as m-file(s), which:

4. Repeats the calculation of Requirement 1 by creating vectors in MATLAB and typing/copying the values from the spreadsheet into the vectors. Verifies the answers, including a report printed to the Command Window regarding the outcome of the verification (merely displaying values in the Command Window will not earn any marks for verification).

5. Successfully loads Dalby 2017-7.csv into MATLAB (the numbers are not to appear in MATLAB code via copy-and-paste!). One possible way of loading the data is using MATLABs Import Data wizard. If you use MATLABs Import Data wizard, you must use the Generate Function option, otherwise your code will not work on another computer, which will automatically mean a loss of marks. Codes which load an edited version of Dalby 2017-7.csv to that supplied will not receive maximum marks. Verifies that the load has been successful by using MATLAB to compare the values of minimum and maximum temperature to those manually entered in Requirement 4.

6. Repeats the calculation of Requirement 1 for the entire month using the data loaded from Requirement 5. Verifies the answers by checking the results from Requirement 5 with the relevant days.

7. Plots the maximum and minimum temperatures along with the results from Requirement 6 for each day on the same graph. The dates should be represented in some manner on the x-axis; for maximum marks, these should appear in standard date format (e.g. 15/7).

8. *Calculates the air density at 9:00 a.m. each day for the entire month using a for loop.

9. Verifies the answers from Requirement 8 by comparing the relevant days with the answers from Requirement 2.

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

Recommended Textbook for

Privacy In Statistical Databases International Conference Psd 2022 Paris France September 21 23 2022 Proceedings Lncs 13463

Authors: Josep Domingo-Ferrer ,Maryline Laurent

1st Edition

3031139445, 978-3031139444

More Books

Students also viewed these Databases questions

Question

politeness and modesty, as well as indirectness;

Answered: 1 week ago