Fast Empirical CDF

Fast calculation of an empirical Cumulative Distribution Function (CDF).

You are now following this Submission

Small routine to calculate an empirical Cumulative Distribution Function (CDF). Faster than MATLAB's ecdf function and no toolboxes required.
Example:
x = -5 + 0.2*randn(1e6, 1);
[F, xF] = ecdfCalc(x);
plot(xF, F)

Cite As

Patrik Forssén (2026). Fast Empirical CDF (https://www.mathworks.com/matlabcentral/fileexchange/114990-fast-empirical-cdf), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0