cdfplot

Create an empirical cumulative distribution function plot.

Syntax

cdfplot(X)

cdfplot(..., fmt)

cdfplot(..., property, value, ...)

h = cdfplot(...)

[h,stats] = cdfplot(...)

Inputs

X
A data sample for which to compute the empirical cumulative distribution.
Type: double
Dimension: vector
fmt
Formatting string of the curve.
Dimension: string
property
Any valid property for a line graphic object.
Dimension: string
value
Value of the property.
Dimension: double | integer | string

Outputs

h
Handle of the line graphic object.
stats
The quantile values on the horizontal axis.
A structure containing information about the data. The following are supported.
'min'
'max'
'mean'
'median'
'std'

Examples

data = [26, 26, 28, 27, 30, 32, 20, 22, 24, 24, 26, 26];
cdfplot(data);


Figure 1. cdfplot