Find how much hotter the maximum temperature

Assignment Help MATLAB Programming
Reference no: EM132094123

Assignment -

Introduction - Recordings from the Bureau of Meteorology of the weather in Dalby have been made. Your task 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: ρ = p/RT (1)

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).

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 MATLAB's Import Data wizard. If you use MATLAB's Import Data wizard, you must use the "Generate Function" option, otherwise your code will not work on another computer, 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.

10. **Repeats the calculation of Requirement 8 using a fully-vectorised code (i.e. no loops for this calculation). Verifies the answers with those from Requirement 8.

11. Plots the result from either Requirement 8 or Requirement 10.

12. ***Uses a while-loop to determine when the cumulative rainfall for the month exceeds 7 mm and reports the answer to the Command Window. Also verifies this answer with Requirement 3.

13. ***Calculates when the cumulative rainfall for the month exceeds 7 mm using a fully-vectorised code (i.e. no loops for this calculation). Verifies this answer with Requirement 3.

14. *Produces an ASCII file containing two columns: date and density. An acceptable answer would store the date as just the day of the month (you do not need to include the month). For top marks, the date and month must be stored in a conventional format.

15. ***Loads all 12 months' worth of data. Determines the minimum and maximum temperatures for the entire period. Plots the minimum and maximum temperature for the entire 12 months with the x-axis each day of the 12 months in order. Also produces two 3-D surface plots with the date of the month on one axis (go up to 28), the month on another axis, and the maximum temperature for the day as the third axis. The first surface plot should only be for the data from 2017; the second should be for all the data in sequence. To get both date and month in ascending order, use a 3-D rotation or the view command.

The projected difficulty of a Requirement is indicated by the number of * at the start. All students are expected to be able to complete Requirements which do not have an *.

You will be assessed on the quality of your appropriate usage of functions. Simply splitting the code into different les to artificially create functions is not worth any marks (this reduces the quality of the code): there should be a logical usage of functions to improve the transparency and reusability of the code.

You must submit pseudocode for Requirement 8.

There is a lot of verification involved in this assignment. This is to help you: by checking your answers, you know if what you are doing is correct (you should never trust the answer supplied by a computer!).

Attachment:- Assignment Files.rar

Reference no: EM132094123

Questions Cloud

Discuss how cq could have been improved : Using the article you read and your text discuss some of what you observed, both in terms of positives and deficits and discuss how CQ could have been improved?
Vision and mission statement : It is so difficult to find or create new products, so many wonderful things have been created from nothing over the past 10 years, but it is possible
Terms of positives and deficits : Using the article you read and your text discuss some of what you observed, both in terms of positives and deficits and discuss how CQ could have been improved?
Why is there a tendency to focus on large firms rather : First Question: In business and society, why is there a tendency to focus on large firms rather than small to medium sized firms?
Find how much hotter the maximum temperature : 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
Bovee and thill business communication web search : Bovee and Thill's Business Communication Web Search, at http://websearch.businesscommunicationnetwork.com. is a unique research tool designed specifically
What is a job description matrix : Explain why ISO 9000 represents a system of procedures. What are the three fundamental things that ISO 9000 tries to establish?
Company manages employees fairly and legally : 1. Integration and application (page 104). Before continuing, review the cases of Southwest and Lincoln Electric at the end of this book.
Play novice different level at least twice : Play "Novice" different level at least twice, and write down in which week you achieve balance in these two rounds. How did you try to improve that.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Generate the sequences using basic MATLAB signal functions

Generate the sequences using the basic MATLAB signal functions and the basic M ATLAB signal operations discussed in this chapter

  Compute the term structure of interest rates

Plot the term structure of interest rates - remember that the y(t, T) = -1/T-t log P(t, T). Describe the term structure and Compute the term structure of interest rates with the value of ro= 0.17. What is the difference between the two term structur..

  Write a matlab function and a matlab script

The objective of this project is to investigate the use of various signal processing techniques in extracting Electric Network Frequency

  Research paper on cpld based power management system

Research Paper on CPLD based power management system for low power devices  Submitted to IETE Seminar conducted in June 2013 at National Institute of Technology Srinagar J&K.

  Calculate the integration along the given path

define the integrand using the given definition as Integrand - Find a parametric representation of C using Matlab

  Write a script that will loop through values

Write a script that will loop through values of n until the difference between the approximation and the actual value is less than 0.0001.

  Import the data into matlab and name the array ace_data

Parameter is related to the energy of the storm, since kinetic energy is proportional to velocity squared. However, it does not take into account the size of the storm, which would be necessary for a true total energy estimate.

  Applications of multirate digital signal processing

ELEC 0316-SPRING - Discuss the applications of Multirate Digital Signal processing or Explain the need of Multirate Signal Processing with suitable Example.

  Create a script file for conversion of temperature

Create a script file for conversion of temperatures. Use the input function or menu function to allow the user to enter temperature scale of Fahrenheit, Celsius, Kelvin, or Rankine. If you are using the input function, tell the user to enter F for Fa..

  Calculate the distance between cities

Calculate the distance between cities

  Write a curried function to add n

Write a curried function to add N (where N is an integer) to each item of a list.

  Write a matlab function

Write a Matlab function [P,L,U] = ColumnCroutLU(A) to perform the column- wise Crout method given by equations (3) and (4), overwriting the matrix

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd