Prob7_A_13 - C(1,2) = 1*1+2*1+0*4 = 3 To calculate the...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
First we observe the dimensions of arrays A and B. A is 2x3 and B is 3x2, so the matrix multiplication C = A*B is legal and the product C is 2x2. To calculate the first row first column element in C, we multiply the first row in A with the first column in B and add the products: C(1,1) = 1*2+2*0+0*1 = 2 To calculate the first row second column element in C, we multiply the first row in A with the second column in B and add the products:
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: C(1,2) = 1*1+2*1+0*4 = 3 To calculate the second row first column element in C, we multiply the second row in A with the first column in B and add the products: C(2,1) = 2*2+1*0+3*1 = 7 To calculate the second row second column element in C, we multiply the second row in A with the second column in B and add the products: C(2,1) = 2*1+1*1+3*4 = 15 So we find C as: = 15 7 3 2 C...
View Full Document

Ask a homework question - tutors are online