Calculating the CDF from a sample set?

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

Hello,
I have already passed through this answer but I still do not understand where f and x variables correspond to. From the [f,x] = ecdf(y) formula.
In my case I've a set of concrete values!
Thank you!
[f,x]=ecdf(t);
plot(f,x)
Best wishes
Torsten.

Sign in to comment.

Answers (1)

Torsten
Torsten on 21 Nov 2016
Edited: Torsten on 21 Nov 2016
https://de.mathworks.com/help/stats/ecdf.html
https://de.mathworks.com/help/stats/cdfplot.html
Best wishes
Torsten.

Tags

Asked:

on 21 Nov 2016

Commented:

on 21 Nov 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!