FUNCTION REFERENCE

cdfplot

Plot of the empirical cumulative distribution function.

Plot of the empirical cumulative distribution function.

Syntax

cdfplot(x)

Syntax

h = cdfplot(x)

Syntax

[h, stats] = cdfplot(x)

Draws the empirical cdf of x (NaN ignored) as a stairstep line with a grid. stats has the fields min, max, mean, median and std.

Example

[h, stats] = cdfplot([3 1 4 1 5 9 2 6]);

Differences from MATLAB: the stairs start at the smallest value rather than at -Inf.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.