function m=cumprodc(x); % get cumulative product of each column m=cumprod(x); if size(m,2)>1; m=m'; end; return;