A barometer is used to measure atmospheric pressure and is filled with the high-density fluid. Pressure P measured by a barometer is the height of the fluid column, h, times the density of the liquid ρ, times the acceleration due to gravity g, or
Determine the height to which the liquid column would rise for pressures from 0 to 100 kPa for two different barometers. Suppose that the first uses mercury, with a density of 13.56 g/cm3 and the second uses water with the density of 1.0 g/cm3. Acceleration due to gravity is 9.81 m/s2. The answer must be in a two dimensional matrix.
American National Oceanic and Atmospheric Administration (NOAA) measures the intensity of a hurricane season with the accumulated cyclone energy (ACE) index. The ACE for a season is the sum of the ACE for ech tropical storm with winds exceeding 35 knots (65 km/h). The maximum sustained winds (measured in knots) in the storm are measured or approximated every six hours. The values are squared and summed over the duration of the storm. The total is divided by 10,000, to make the parameter easier to use.
ACE= Σv2 max/104
This parameter is related to the energy of the storm, as kinetic energy is proportional to velocity squared. Though, it doesn't take into account the size of the storm, which will be necessary for the true total energy estimate. Reliable storm data have been collected in the Atlantic Ocean since 1950, and are included in a file known as ace.xlsx. Import this file into MATLAB using following command
ace_data = xlsread('ACE.xlsx');
a) Import the data into MATLAB and name the array ace_data.
b) Extract the data from each column into individual arrays. You should have arrays named
i. years (column 1) (year of record)
ii. ace (column 2) (ACE Index)
iii. tropical_storms (column 3) (# of tropical storms)
iv. hurricanes (column 4) (# of hurricanes category 1 – 5)
v. major_hurricanes (column 5) (# of major hurricanes category 3 – 5)
c) Use the max function to determine which year had the highest
i. ACE value
ii. Number of tropical storms
iii. Number of hurricanes
iv. Number of major hurricanes
d) Find out the mean and the median values for each column in the array except for the year.
e) Use the sortrows function to rearrange the ace_data array based on the ACE values, sorted from highest to lowest.