i found out a way for this. I opened the source code of cdfplot.m. I replaced
'ycdf' with '1-ycdf'' in the plot command. Thats it.
Boom!!!!
Rajesh
----- Original Message -----
From: Nandan Das
To: Rajesh
Cc: matlab@matl...
Sent: Thursday, October 06, 2005 9:36 PM
Subject: Re: [matlab] plotting CCDF
Why don't you write a small little .m file to calculate the cdf (or the
ccdf directly), instead of relying on cdfplot? The code for cdf is probably
quite simple..if you want, I believe there are a couple of files in the
mathworks fileexchange section that give you the code for calculating the cdf.
Let me know if that doesn't work for you.
Best of luck
Nandan
On 10/5/05, Rajesh <rajeshch@raje...> wrote:
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?
TIA
Rajesh
Reply by Nandan Das●October 6, 20052005-10-06
Why don't you write a small little .m file to calculate the cdf (or the
ccdf
directly), instead of relying on cdfplot? The code for cdf is probably quite
simple..if you want, I believe there are a couple of files in the mathworks
fileexchange section that give you the code for calculating the cdf. Let me
know if that doesn't work for you.
Best of luck
Nandan
On 10/5/05, Rajesh <rajeshch@raje...> wrote: >
> 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?
>
> TIA
> Rajesh
>
Reply by kamran●October 6, 20052005-10-06
Hi,
In higher versions of matlab (from ver 6.5), there are
many editing fucntions in firgure window, just click
the arrow symbol in panel, than double click your
plot, and u can easily save in your workplace, and
further you can do many more editing functions as
well.
cheers,
kamran
--- Rajesh <rajeshch@raje...> wrote:
> 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?
>
> TIA
> Rajesh
>
__________________________________
Reply by Rajesh●October 5, 20052005-10-05
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?