I have a vector row b = [b1 b2 b3 b4]
and a Matrix M = [m1 m2 m3 m4]
where the m1,m2,m3 and m4 are column vectors of size N.
I want to do perform a multiplication so that I can have the following result in Matlab:
Result = [b1*m1 b2*m2 b3*m3 b4*m4]
and also, what if B = [b11 b12 b13; b21 b22 b23;b31 b32 b33 b34;b41 b42 b43 b44]
How would I get:
Result2 = [b11*m1 + b12*m2 + b13*m2;
b21*m1 + b22*m2 + b23*m2;
b31*m1 + b32*m2 + b33*m2;
b41*m1 + b42*m2 + b43*m2]
Thank you in advance.