annotate general/numerical/array/mulrows.m @ 61:eff6bddf82e3 tip

Finally implemented perceptual brightness thing.
author samer
date Sun, 11 Oct 2015 10:20:42 +0100
parents db7f4afd27c5
children
rev   line source
samer@16 1 % mulrows - Multiply rews of array by corresponding values in row vector
samer@16 2 %
samer@16 3 % mulrows :: [[N,M]], [[N]] -> [[N,M]].
samer@4 4 function y=mulrows(x,k)
samer@4 5 y=repmat(k,1,size(x,2)).*x;
samer@4 6 end