1. Engineering
  2. Computer Science
  3. matlab exercises...

Question: matlab exercises...

Question details
MATLAB EXERCISES
Ejercicio-3: Consider the following Matrix named Temp, which contains the monthly average temperature during the period of 2005-2009. Month Year 2005 2006 2007 2008 2009 January February March 13 14 14 19 20 25 29 27 10 15 18 14 21 13 16 ri May June July August September October November December 26 27 28 20 19 14 27 29 28 23 21 13 24 28 30 29 24 19 12 20 21 28 30 28 18 12 10 19 10 Write the Matlab commands to do the following operations: I 1. The average temperature in 2008 saved in Average 2008. 2. The vector of the average temperatures in the summer months (July, August and September) during 2005-2009 and save it Average Summer. 3. The average temperature in February during 2005-2009 and save it Average February 4. The number of months of 2009 in which the temperature was above 20 °C and save it Hot 2009. Given x [3 159 12-1 0-12 9 6 1], provide the command(s) that will 1. Set the values of x that are positive to zero 2. Set values that are multiples of 3 to 3 (use rem function) 3. Multiply the values of x that are even by 5 4. Extract the values of x that are greater than 10 into a vector called y 5. Set the values in x that are less than the mean to -1 and the values that are above the mean to +1
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution