How to plot multiple CDF in one figure?
36 views (last 30 days)
I have 6 dataset. Each contains 10000 values.
I want to plot the CDF (Cumulative distribution function) of the dataset in a same figure in order to compare them.
I know that, total CDF will be 1 for each dataset.
How can I do that in MATLAB.
I am using cdfplot(dataset). But this is not working.
I am attaching a sample figure here.
Jalaj Gambhir on 11 Nov 2019
You can easily use 'hold on' between each cdfplot for each dataset.
Here the 'coastlat' and 'coastlon' are vectors of size 9865*1. And the output as: