Calculating the CDF from a sample set?
Show older comments
Hello, I have a sample set: t=[206 229 231 362 324 826 231 763 159 234 146 148 150 162 163 155 252 203 368 ]
What is the command to calculate the CDF? I am not sure if cdf(t) is correct, and I also need the plot of this CDF.
Thank you!
2 Comments
Alexandros84
on 21 Nov 2016
Torsten
on 21 Nov 2016
[f,x]=ecdf(t);
plot(f,x)
Best wishes
Torsten.
Answers (1)
https://de.mathworks.com/help/stats/ecdf.html
https://de.mathworks.com/help/stats/cdfplot.html
Best wishes
Torsten.
Categories
Find more on Uniform Distribution (Continuous) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!