function b=cdf(a) b=a; [r,c] = size(a); for j=2:c b(1,j)= b(1,j-1)+a(1,j); end