MATLAB: Multiply each column by a elements of cell array

MATLAB

hey
i have a matrix like this:
matrix=
0 2 4
3 0 0
0 1 0
3 0 1
0 0 0
and cell array: mul={1,1,0.6,0.6,0.3}
i want to multiply all columns by 'mul' and then add. e.g. [0x1 + 3×1 + 0x0.6 + 3×0.6 + 0x0.3] and same for all other columns.
Thanks

Best Answer

matrix=[0 2 4
3 0 0
0 1 0
3 0 1
0 0 0];
mul={1,1,0.6,0.6,0.3} ;
iwant = sum(bsxfun(@times,matrix,[mul{:}]'))