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 件のコメント

Alexandros84
Alexandros84 2016 年 11 月 21 日
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!
Torsten
Torsten 2016 年 11 月 21 日
[f,x]=ecdf(t);
plot(f,x)
Best wishes
Torsten.

サインインしてコメントする。

回答 (1 件)

Torsten
Torsten 2016 年 11 月 21 日
編集済み: Torsten 2016 年 11 月 21 日

0 投票

https://de.mathworks.com/help/stats/ecdf.html
https://de.mathworks.com/help/stats/cdfplot.html
Best wishes
Torsten.

タグ

質問済み:

2016 年 11 月 21 日

コメント済み:

2016 年 11 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by