Question: By using matlab WVU FEP ummer 2018 Element-wise Algebra: Below are the daily temperatures (degrees Fahrenheit) for each day of February. (The 1st element is
WVU FEP ummer 2018 Element-wise Algebra: Below are the daily temperatures (degrees Fahrenheit) for each day of February. (The 1st element is February 1st) 2. S M T W R F S 48 43 39 36 41 44 51 55 52 45 44 38 37 34 36 36 42 44 49 47 46 150 52 54 56 58 60 62 a. Create the F matrix and then convert all temperatures to Celsius using: C-(5/9)*(F-32) Use built-in functions to find the minimum, maximum, and average b. temperatures for the entire month, as well as the day at which the max and min occurred. Output each value and the corresponding day to the user. (The following 3 step process lets you find the day) Use the optional 2nd output argument for the min/max functions to determine the location in the matrix where min/max occur. Create a new 4x7 matrix containing the "days of the month" ie: the 1st row is the numbers 1-7, 2nd row is 8-14, etc. i. ii. ii. Use the index location determined in part i to find the appropriate day within the matrix of days from part ii Suppose the following year forecast calls for progressively hotter and hotter days. On Feb 1st of next year, it is to be one degree hotter than Feb 1st of this year, and Feb 2nd is to be 2 degrees hotter than Feb 2nd of this year, etc. Add these temperature increases to matrix F to find out c. the temperatures next year. i. Create a row vector of the temp increases 1 through 28. i. Reshape this vector into a 7x4 matrix using the reshape function. ili. Transpose the 7x4 matrix to turn it into the proper 4x7 size. iv. Use element-wise addition to add this new matrix to matrix F
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
