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

Number 14 as quick as possible please a Assign the even-number rows of A to an a

ID: 3872009 • Letter: N

Question


Number 14 as quick as possible please a Assign the even-number rows of A to an array oall Anaign the odd-nusbered columne to an array ealled o. Convert A into a 3 by 4 matrix dCompute the reciprocal of each lement A e. compute the square root of each element A 12 (15 pts) Given that x-[1 9 0 11 and y 16 o 21 provide the result associated with the MATLAB command a.oy 13. (15 pts) Given that x 1 o1 0 01 and y 1 1 1 1 01 provide the result associated with the MATLAB command a. xly 14. (15 pts) The exercises here show the techniques of logical- indexing (indexing with 0-1 vectors). Given x = [ 6 6 2 1 41 and y=[83527], d. x( (x

Explanation / Answer

14.)

a.) Since, each value in x is either greater that 2 or less than 5. Therefore,

(x>2)|(x<5) = [1 1 1 1 1]

b.)Since, only last three values in x is less than 6. Therefore,

x(x<6) = [2 1 4]

c.) Since, every value in x is less than or equal to 8. Therefore,

y(x<=8) = [8 3 5 2 7]

d.) Except last value of x i.e., 4, all other values are either less than 3 or greater than or equal to 6. Therefore,

x((x<3) | (x>=6)) = [6 6 2 1]

e.) Since, there is no value in x which is less than 4 and greater than or equal to 7. Therefore,

y((x<4) & (x>=7)) = []

Hope it helps, do give your valuable response.