You can do it like this.
bsxfun(@times,M,N)
If N is column vector then each colmn in M is multiplied by N, else if N is row vector then each row in M is multiplied by N.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!