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

The following matrices M and N are given: 3 7-4121 M=1-5 9 10 2 2 N= 6 13 8 11 6

ID: 2249321 • Letter: T

Question

The following matrices M and N are given: 3 7-4121 M=1-5 9 10 2 2 N= 6 13 8 11 6 -2 15 5 4 Determine the product of Matrix M and Matrix N. Store the product in Matrix AA. Use the appropriate Matlab function(s) to sort each row of the matrix M in ascending order save it in matrix BB b. c. Without re-entering any values creat the matrix E containing columns 1 and 4 of matrix M d. Perform an element by element multiplication of N by E. Store the results in matrix F. e. Append matrix E to matrix N to form a 4 x 4 matrix called G Find the cubic value of each element in Matrix M. Call the resulting matrix AAA

Explanation / Answer

The following matrices M and N are given below as :

M = [ 3    7    -4 12 ]

       [ -5   9    10 2 ]

       [ 6   13    8    11 ]

       [ 15   5    4     1 ]

N = [ 4    -2 ]

       [ 5     3 ]

       [ 6    -2 ]

       [ 7     4 ]

(1) Determine the product of Matrix M and Matrix N. Store the product in Matrix AA.

Matrix AA = (Matrix M) x (Matric N)

Matrix AA = [ 3    7    -4 12 ]   x   [ 4    -2 ]

                     [ -5   9    10 2 ]   x   [ 5     3 ]

                     [ 6   13    8    11 ]   x   [ 6    -2 ]

                     [ 15   5    4     1 ]    x [ 7     4 ]

Matrix AA = [ (12 + 35 - 24 + 84)       (-6 + 21 + 8 + 48) ]

   [ (-20 + 45 + 60 + 14)     (10 + 27 - 20 + 8) ]

                     [ (24 + 65 + 48 + 77)        (-12 + 39 - 16 + 44)]

                     [ (60 + 25 + 24 + 7)          (-30 + 15 - 8 + 4) ]

Matrix AA = [ 107     71 ]

                     [ 99       25 ]

                     [ 214     55 ]

                     [ 116    -19 ]

(f) Find the cubic value of each element in Matrix M. Call the resulting matric AAA.

Matrix AAA = (Matrix M) x (Matrix AA)

Matrix AAA = [ 3    7    -4 12 ] x [ 107     71 ]   

                      [ -5   9    10 2 ] x [ 99       25 ]  

                      [ 6   13    8    11 ] x [ 214     55 ]

                    [ 15   5    4     1 ] x   [ 116    -19 ]

Matrix AAA = [ (321 + 693 - 856 + 1392)        (213 + 175 - 220 - 228) ]

                      [ (-495 + 891 + 2140 + 232)     (-355 + 225 + 550 - 38) ]

                      [ (642 + 1287 + 1712 + 1276)   (426 + 325 + 440 - 209) ]

                      [ (1605 + 495 + 856 + 116)       (1065 + 125 + 220 - 19) ]

Matrix AAA = [ 1550       -60 ]

                      [ 2768      382 ]

                      [ 4917      982 ]

                      [ 3072    1391 ]