Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Empirical cumulative distribution function

```
[f,x]
= ecdf(y)
```

```
[f,x]
= ecdf(y,Name,Value)
```

```
[f,x,flo,fup]
= ecdf(___)
```

`ecdf(___)`

`ecdf(ax,___)`

`[`

returns
the empirical function values, `f`

,`x`

]
= ecdf(`y`

,`Name,Value`

)`f`

, evaluated at
the points in `x`

, with additional options specified
by one or more `Name,Value`

pair arguments.

For example, you can specify the type of function to evaluate or which data is censored.

[1] Cox, D. R., and D.
Oakes. *Analysis of Survival
Data*. London: Chapman & Hall,
1984.

[2] Lawless, J. F. *Statistical
Models and Methods for Lifetime Data*.
2nd ed., Hoboken, NJ: John Wiley & Sons, Inc.,
2003.