I have a matrix A:
1 3 1 7 5 2 4 3 7 8 2 1 3 9 6 4 5 2 and a matrix B:
2 9 1 4 3 8 9 7 3 4 4 2 6 5 7 2 9 2 I want to compute C:
1*2+3*9+1*1 7*4+5*3+2*8 4*9+3*7+7*3 8*4+2*4+1*2 3*6+9*5+6*7 4*2+5*9+2*2 How can I express this purely using matrix operations? I realize I can do this using . versions but I am interested in pure matrix operations. For example, when I have two vectors x and y, I vastly prefer x'*y over sum(x.*y). Hence I am interested in how to do the above also using matrix operations.