cdfplot and ecdf differences
16 次查看(过去 30 天)
显示 更早的评论
Im having some difficulty distinguishing the differences between ecdf and cdfplot. I understand that ecdf calculates it and cdfplot calculates and plots it. The plots they generate are different and produce different stats (mean, median, etc)
My question is, which one is more applicable to use? Are there any differences between these two commands?. Code and graphs to follow.
s = stats_table.Circularity;
histogram(s, 'BinWidth',0.09, ...
'Normalization','cdf')
figure
[f,x] = ecdf(s);
hold on;
plot(x,f)
histogram(s, 'BinWidth',0.09, ...
'Normalization','cdf')
hold off
figure
hold on
[h, stats] = cdfplot(s);
histogram(s, 'BinWidth',0.09, ...
'Normalization','cdf')
hold off
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!