Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

MATLAB EXERCISES image text in transcribed
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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mastering Apache Cassandra 3 X An Expert Guide To Improving Database Scalability And Availability Without Compromising Performance

Authors: Aaron Ploetz ,Tejaswi Malepati ,Nishant Neeraj

3rd Edition

1789131499, 978-1789131499

More Books

Students also viewed these Databases questions