Question: MATLAB using for loop + logic The daily high temperatures in New York, NY and Anchorage, AK for a bunch of days in a row

MATLAB using for loop + logicMATLAB using for loop + logic The daily high temperatures in New

The daily high temperatures in New York, NY and Anchorage, AK for a bunch of days in a row are given: TNY = [31, 26, 30, 33, 33, 39, 41, 41, 34, 33, 45, 42, 36, 39, 37, 45,-.. 36, 45, 22, 28, 46, 48, 45, 40, 29, 26, 52, 46, 24, 36, 48, 32,... 43, 36, 41, 37, 32, 32, 35, 42, 38, 33, 40, 37, 36, 51, 50); [37, 24, 28, 25, 21, 28, 46, 37, 36, 20, 24, 31, 34, 40, 43, 36,... 47, 23, 42, 28, 34, 47, 44, 38, 23, 32, 37, 40, 22, 24, 49, 51, ... 34, 41, 42, 35, 38, 36, 35, 33, 42, 42, 37, 26, 20, 25, 31]; TAN = Write a script to: 1. Count the number of days that the temperature in NY was above the average temperature of NY. Store the answer in a variable called aboveNY. 2. Count the number of days that the temperature in AK was above the average temperature of AK. Store the answer in a variable called aboveAK. 3. Count how many days the temperature in AK was higher than that in NY. Store the answer in a variable called AKhigher

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!