MATLAB: Matrix Multiplication (multiply every row of a matrix to different values)

matrix manipulation- array multiplication

Dear all,
I am looking for a way to multiply every row of a matrix to different values? Let assume we have:
A=[1, 2, 3; 4, 5, 6; 7, 8, 9]
B=[a;b;c]
I am looking for a way to have:
C=[1*a, 2*a, 3*a; 4*b, 5*b, 6*b; 7*c, 8*c, 9*c]
Thanks in advance for your comments.

Best Answer

or
C=bsxfun(@times,A,B);