% CDBN file cdbn.m Continuous graph of distribution function % Version of 1/29/97 % Plots continuous graph of dbn function FX from % distribution of simple rv (or simple approximation) xc = input('Enter row matrix of VALUES '); pc = input('Enter row matrix of PROBABILITIES '); m = length(xc); FX = cumsum(pc); xt = [xc(1)-0.01 xc xc(m)+0.01]; FX = [0 FX FX(m)]; % Artificial extension of range and domain plot(xt,FX) % Plot of continuous graph grid xlabel('t') ylabel('u = F(t)') title('Distribution Function')