Date: Feb 2, 2013 3:59 AM
Author: james bejon
Subject: Re: Matrix Multipication

r = rand(6, 5);
k = 1:4;
bsxfun( @times, r, reshape(k, [1, 1, numel(k)]) )