Statistics Toolbox | ![]() ![]() |
Computes a chosen cumulative distribution function (cdf)
Syntax
Description
returns a matrix of probabilities, where name is a string containing the name of the distribution, X is a matrix of values, and A, A2, and A3 are matrices of distribution parameters. Depending on the distribution, some of these parameters may not be necessary.P = cdf('
name
',X,
A1,
A2,
A3)
Vector or matrix inputs for X, A1, A2, and A3 must have the same size, which is also the size of P. A scalar input for X, A1, A2, or A3 is expanded to a constant matrix with the same dimensions as the other inputs.
cdf is a utility routine allowing you to access all the cdfs in the Statistics Toolbox by using the name of the distribution as a parameter. See Overview of the Distributions for the list of available distributions.
Examples
p = cdf('Normal',-2:2,0,1) p = 0.0228 0.1587 0.5000 0.8413 0.9772 p = cdf('Poisson',0:5,1:6) p = 0.3679 0.4060 0.4232 0.4335 0.4405 0.4457
See Also
betacdf
, binocdf
, chi2cdf
, expcdf
, fcdf
, gamcdf
, geocdf
, hygecdf
, icdf
, logncdf
, mle
, nbincdf
, ncfcdf
, nctcdf
, ncx2cdf
, normcdf
, pdf
, poisscdf
, random
, raylcdf
, tcdf
, unidcdf
, unifcdf
, weibcdf
![]() | ccdesign | cdfplot | ![]() |