Question: Matlab help ! Ive been struggling on making a code for this through matlab ! please help Consider the two row vectors temps2020 and temps

Matlab help !
Ive been struggling on making a code for this through matlab ! please help
Matlab help ! Ive been struggling on making a code for this

Consider the two row vectors temps2020 and temps 2021 which represent the average high Fahrenheit temperature for each month of 2020 and 2021 temps 2020 = [ 28, 32, 41 59, 68, 75, 80, 86, 72, 59, 44, 39 ] temps2021 = [ 33, 33, 46 60, 71, 75, 81, 81, 74, 61, 48, 38] Write the command that assigns the row array percentChange with the percentage change of temperatures in each month from 2020 to 2021 Ex: Month 1 (January) temperature was 33F in 2021 and 28F in 2020. The percentage of change is (33 - 28728) * 100, or 17.8571 percent. Function Save Reset MATLAB Documentation 1 function percentChange = calcChange(temp2020, temp2021) 2 temp2020: 2020 monthly average temperature in fahrenheit 3 temp2021: 2021 monthly average temperature in fahrenheit * Assign percentChange with the percent change in temperature for each month percent Change = 0; 4 5 6 7 8 end Code to call your function Reset 1 calcChange (28,32,41,59,68,75,80,86,72,59,44,39), (33,33,46,60,71,75,81,81,74,61,48,38))

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!