www.gusucode.com > stats 源码程序 matlab案例代码 > stats/PlotADiscreteUniformDistributionCdfExample.m
%% Plot a Discrete Uniform Distribution cdf % % Copyright 2015 The MathWorks, Inc. %% % As for all discrete distributions, the cdf is a step function. The plot % shows the discrete uniform cdf for _N_ = 10. x = 0:10; y = unidcdf(x,10); figure; stairs(x,y) h = gca; h.XLim = [0 11];