Question: using matlab and fprintf to display results The maximum daily temperatures (in F) for New York City and Anchorage Alaska during the month of January,

 using matlab and fprintf to display results The maximum daily temperatures

using matlab and fprintf to display results

The maximum daily temperatures (in F) for New York City and Anchorage Alaska during the month of January, 2001 are given in the vectors belovw TNY = [31,26,30,3333394 1.41343345.42.363937,454336413732.32 3542383340.373651 51 2. TANC 137,24,28,25,21,28,46,37,36,20,24,31,34,40,43,36,34,41,42,35,38,36,35,33,42,42,37,26,20,25,31] Write a program that will answer the following: a. Calculate the average temperature for the month in each city b. How many days was the temperature for the month below the average in each city? c. How many days and which dates in the month was the temperature in Anchorage higher than the temperature in New York? How many days, and which dates in the month, was the temperature the same in both cities? How many days, and which dates in the month, was the temperature in both cities above freezing (above 32 F) What was the date of the last day of the month during which Anchorage was warmer than New York? What was the temperature of Anchorage on that day? d. e. f. The maximum daily temperatures (in F) for New York City and Anchorage Alaska during the month of January, 2001 are given in the vectors belovw TNY = [31,26,30,3333394 1.41343345.42.363937,454336413732.32 3542383340.373651 51 2. TANC 137,24,28,25,21,28,46,37,36,20,24,31,34,40,43,36,34,41,42,35,38,36,35,33,42,42,37,26,20,25,31] Write a program that will answer the following: a. Calculate the average temperature for the month in each city b. How many days was the temperature for the month below the average in each city? c. How many days and which dates in the month was the temperature in Anchorage higher than the temperature in New York? How many days, and which dates in the month, was the temperature the same in both cities? How many days, and which dates in the month, was the temperature in both cities above freezing (above 32 F) What was the date of the last day of the month during which Anchorage was warmer than New York? What was the temperature of Anchorage on that day? d. e. f

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!