how to calculate percentile from ecdf values f and x

3 次查看(过去 30 天)
suppose i have
y = 0:10;
[f x] = ecdf(y);
plot(x,f);
then why does my x value corresponding to f = 0.5 is not equal to median(y).
because median, simply means half of total data points towards both side of median.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

产品


版本

R2013b

Community Treasure Hunt

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

Start Hunting!

Translated by