MATLAB: Can I multiply a Vector with a Matrix

matrix arrayvector

Hi;
Sorry for my english. I've a big problem, I want multiply a vector by a matrix:
ES: A=< 1×1250 double >; B= is a matrix < 421×421 double >;
C=A*B; ??? Error using ==> Inner matrix dimensions must agree
or if
C=A.*B; ??? Error using ==> times Matrix dimensions must agree.
Please help me!!! Thanks

Best Answer

In the expression A*B the number of columns of A must equal the number of rows of B.