Hi there,
I was wondering what matlab function I can use to multiply a matrix by another matrix and then multiply those two matrices row by row and then column by column. Yielding a total of three matrix multiplications: regular matrix multiplication, row by row multiplication, and column by column multiplication.
Code%
A = ([ 1 2 3; 4 5 6; 7 8 9]); B = ([ 2 2 2; 2 2 2 ; 2 2 2]);%...For example...Regular matrix multiplication: A*B = ([12 12 12; 30 30 30; 48 48 48])%How can I write it to multiply the matrix row by row and column by column?Row by row multiplication: RowsA*RowsB = ([12 12 12; 30 30 30; 48 48 48])Column by column multiplication: ColsA*ColsB = ([12 12 12; 30 30 30; 48 48 48])Thank you.
Best Answer