[Solved]Write Matlab Program Answer Following Calculate Average Temperature Month City Show Averag Q37231959
Write a Matlab program to answer the following:
a) Calculate the average temperature for the month in each city.Show the averages with 2 decimal places. Provide a statement tomake your answer clear.
b) How many days was the temperature below the averagetemperature for each city? Show the quantity with 0 decimal places.Provide a statement to make your answer clear.
c) How many days and which dates in the month was thetemperature in Anchorage, Alaska higher than the temperature in NewYork City?
Show the quantity with 0 decimal places. Print out theparticular day(s) with 0 decimal places. Provide statements to makethe multiple answers clear.
d) How many days and which dates in the month was thetemperature the same comparing Anchorage, Alaska to New YorkCity?
Show the quantity with 0 decimal places. Print out theparticular day(s) with 0 decimal places. Provide statements to makethe multiple answers clear.
e) How many days and which dates in the month was thetemperature above freezing, above 32 degrees Fahrenheit, comparingAnchorage, Alaska to New York City?
Show the quantity with 0 decimal places. Print out theparticular day(s) with 0 decimal places. Provide statements to makethe multiple answers clear.
Data to be used:
TempNY = [ 31 26 30 33 33 39 41 41 34 33 45 42 36 39 37 45 43 3641 37 32 32 35 42 38 33 40 37 36 51 50]
TempANC = [ 37 24 28 25 21 28 46 37 36 20 24 31 34 40 43 36 3441 42 35 38 36 35 33 42 42 37 26 20 25 31]
Expert Answer
Answer to Write a Matlab program to answer the following: a) Calculate the average temperature for the month in each city. Show t… . . .
OR

