plot Complementary Cumulative DIstribution

22 ビュー (過去 30 日間)
kirtesh
kirtesh 2011 年 5 月 28 日
コメント済み: abdullah qasim 2019 年 10 月 10 日
> I want to plot Complementary Cumulative DIstribution > Function(CCDF) of a random variable. There is a > command to plot only Cumulative Distributive > Function(CDF)-"cdfplot". How to get the CCDF plot? > I thought of one way. First get the points from the > CDF plot. then subtract them from 1(because CCDF = 1 > - CDF). But I dont know how to get the points from a > plot. Can somebody help me?

回答 (1 件)

Teja Muppirala
Teja Muppirala 2011 年 5 月 28 日
cdfplot calls cdfcalc. You can use this to get the actual values.
X = randn(10000,1);
[ycdf,xcdf] = cdfcalc(X);
xccdf = xcdf;
yccdf = 1-ycdf(1:end-1);
plot(xcdf,yccdf);
  1 件のコメント
abdullah qasim
abdullah qasim 2019 年 10 月 10 日
great but I have just posative signal

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by