Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The maximum daily temperature in Fahrenheit for New York City and Anchorage, Ala

ID: 3822816 • Letter: T

Question

The maximum daily temperature in Fahrenheit for New York City and Anchorage, Alaska are given for the month of January in order from the 1^st to the 31^st. NYC = [31, 26, 30, 33, 33, 39, 41, 41, 34, 33, 45, 42, 36, 39, 37, 45, 43, 36, 41, 37, 32, 32, 35, 42, 38, 33, 40, 37, 36, 51, 50]; ANC = [37, 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 script file using MATLAB function and operators to answer the following: a Calculate the average (mean) temperature for the month m each city (MATLAB has a function for computing the mean, use help to find it). b How many days were below the average temperature m each city? c How many days and which days of the month was the temperature m .Anchorage higher than the temperature m New York? Read about the find function m MATLAB > > help find

Explanation / Answer

NYC=[31,26,30,33,33,39,41,41,34,33,45,42,36,39,37,45,43,36,41,37,32,32,35,42,38,33,40,37,36,51,50];

ANC=[37,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];

NYCavg= mean(NYC);

ANCavg=mean(ANC);

disp("mean temperature for month iin city newyork is");

disp(ANCavg);

disp("mean temperature for month iin city alaska is");

disp(NYCavg);

b=NYC<NYCavg;

c=ANC,ANCavg;

disp("no of days less than average temerature in newyork is");

disp(b);

disp("no of days less than average temerature in alaska is");

disp(c);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote