samer@16: % mulrows - Multiply rews of array by corresponding values in row vector samer@16: % samer@16: % mulrows :: [[N,M]], [[N]] -> [[N,M]]. samer@4: function y=mulrows(x,k) samer@4: y=repmat(k,1,size(x,2)).*x; samer@4: end