Simple Method to Generate a CDF plot

This uses a sort function to quickly and easily plot CDF functions

You are now following this Submission

If you have a data file and want to plot a cumulative distribution function (CDF) with almost no work, this is the way to go. Also presented is a way to grab some values from the CDF curve, and a way to generate a PDF using standard Matlab functions.

Cite As

Rick McConnell (2026). Simple Method to Generate a CDF plot (https://nl.mathworks.com/matlabcentral/fileexchange/29128-simple-method-to-generate-a-cdf-plot), 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.0