Thread Subject: Plot cdf and pdf graph

Subject: Plot cdf and pdf graph

From: siti

Date: 19 Jul, 2009 16:50:03

Message: 1 of 6

hi,
i got a problem to plot a graph in pdf and cdf. i have [9X1000X9]
matrix data. how could i plot it in the form of cdf and pdf? i can't
relate and apply what have been explained in help with my problem. can
somebody help or share idea with me?

thanks

Subject: Plot cdf and pdf graph

From: ImageAnalyst

Date: 19 Jul, 2009 20:26:13

Message: 2 of 6

On Jul 19, 12:50 pm, siti <siti1...@gmail.com> wrote:
> hi,
> i got a problem to plot a graph in pdf and cdf. i have [9X1000X9]
> matrix data. how could i plot it in the form of cdf and pdf? i can't
> relate and apply what have been explained in help with my problem. can
> somebody help or share idea with me?
>
> thanks

---------------------------------------------------------------
siti:
I haven't heard before the exact phase "in pdf and cdf." Does cdf
mean Cumulative Distribution Function? Or something else, like a
style of plotting?

Does pdf mean "Probability Density Function" or "Portable Document
Format"? I.e., you either want to plot the histogram of your matrix,
or you want to export your graph to a PDF format file.

If you mean the statistical definitions, them you'll find these
functions useful:
plot() to plot line curves
bar() to plot bar charts if you want the pdf or cdf in that form
instead,
hist() or histc() to get the pdf (the normalized histogram) of your
data
cumsum() to get cdf from pdf
subplot if you want to layout 2 or more separate plots on one figure,
hold on, if you want to plot a second curve without blowing away your
first one.
plotyy() if you want to plot two things, each with a different y scale/
range.

Good luck,
ImageAnalyst

Subject: Plot cdf and pdf graph

From: siti

Date: 20 Jul, 2009 01:48:48

Message: 3 of 6

On Jul 20, 4:26 am, ImageAnalyst <imageanal...@mailinator.com> wrote:
> On Jul 19, 12:50 pm, siti <siti1...@gmail.com> wrote:
>
> > hi,
> > i got a problem to plot a graph in pdf and cdf. i have [9X1000X9]
> > matrix data. how could i plot it in the form of cdf and pdf? i can't
> > relate and apply what have been explained in help with my problem. can
> > somebody help or share idea with me?
>
> > thanks
>
> ---------------------------------------------------------------
> siti:
> I haven't heard before the exact phase "in pdf and cdf."  Does cdf
> mean Cumulative Distribution Function?  Or something else, like a
> style of plotting?
>
> Does pdf mean "Probability Density Function" or "Portable Document
> Format"?  I.e., you either want to plot the histogram of your matrix,
> or you want to export your graph to a PDF format file.
>
> If you mean the statistical definitions, them you'll find these
> functions useful:
> plot() to plot line curves
> bar() to plot bar charts if you want the pdf or cdf in that form
> instead,
> hist() or histc() to get the pdf (the normalized histogram) of your
> data
> cumsum() to get cdf from pdf
> subplot if you want to layout 2 or more separate plots on one figure,
> hold on, if you want to plot a second curve without blowing away your
> first one.
> plotyy() if you want to plot two things, each with a different y scale/
> range.
>
> Good luck,
> ImageAnalyst


hi,
thanks for your idea. for your information, cdf means cumulative
distribution function. i've been asked to convert a triangle graph to
bell shaped graph and abscissa(normal CDF) graph. but, i don't know
how to do that.

Subject: Plot cdf and pdf graph

From: ImageAnalyst

Date: 20 Jul, 2009 03:15:54

Message: 4 of 6

On Jul 19, 9:48 pm, siti <siti1...@gmail.com> wrote:
> On Jul 20, 4:26 am, ImageAnalyst <imageanal...@mailinator.com> wrote:
>
>
>
>
>
> > On Jul 19, 12:50 pm, siti <siti1...@gmail.com> wrote:
>
> > > hi,
> > > i got a problem to plot a graph in pdf and cdf. i have [9X1000X9]
> > > matrix data. how could i plot it in the form of cdf and pdf? i can't
> > > relate and apply what have been explained in help with my problem. can
> > > somebody help or share idea with me?
>
> > > thanks
>
> > ---------------------------------------------------------------
> > siti:
> > I haven't heard before the exact phase "in pdf and cdf."  Does cdf
> > mean Cumulative Distribution Function?  Or something else, like a
> > style of plotting?
>
> > Does pdf mean "Probability Density Function" or "Portable Document
> > Format"?  I.e., you either want to plot the histogram of your matrix,
> > or you want to export your graph to a PDF format file.
>
> > If you mean the statistical definitions, them you'll find these
> > functions useful:
> > plot() to plot line curves
> > bar() to plot bar charts if you want the pdf or cdf in that form
> > instead,
> > hist() or histc() to get the pdf (the normalized histogram) of your
> > data
> > cumsum() to get cdf from pdf
> > subplot if you want to layout 2 or more separate plots on one figure,
> > hold on, if you want to plot a second curve without blowing away your
> > first one.
> > plotyy() if you want to plot two things, each with a different y scale/
> > range.
>
> > Good luck,
> > ImageAnalyst
>
> hi,
> thanks for your idea. for your information, cdf means cumulative
> distribution function. i've been asked to convert a triangle graph to
> bell shaped graph and abscissa(normal CDF) graph. but, i don't know
> how to do that.- Hide quoted text -
>
> - Show quoted text -

--------------------------------------------------------
I don't either. Makes no sense to me. What have you tried so far?
Or can you give an EXACT written description of your problem? Is this
anything like what you've tried?
clc;
close all;
workspace;
upramp = 1:50;
downramp = 50: -1 : 1;
triangleShape = [upramp downramp];
subplot(1,2,1);
bar(triangleShape);
title('PDF that is a triangle');
cdf = cumsum(triangleShape);
subplot(1,2,2);
bar(cdf);
title('CDF of Trianglular PDF');
set(gcf, 'Position', get(0, 'ScreenSize')); % Maximize figure.

Subject: Plot cdf and pdf graph

From: siti

Date: 20 Jul, 2009 03:58:55

Message: 5 of 6

On Jul 20, 11:15 am, ImageAnalyst <imageanal...@mailinator.com> wrote:
> On Jul 19, 9:48 pm, siti <siti1...@gmail.com> wrote:
>
>
>
> > On Jul 20, 4:26 am, ImageAnalyst <imageanal...@mailinator.com> wrote:
>
> > > On Jul 19, 12:50 pm, siti <siti1...@gmail.com> wrote:
>
> > > > hi,
> > > > i got a problem to plot a graph in pdf and cdf. i have [9X1000X9]
> > > > matrix data. how could i plot it in the form of cdf and pdf? i can't
> > > > relate and apply what have been explained in help with my problem. can
> > > > somebody help or share idea with me?
>
> > > > thanks
>
> > > ---------------------------------------------------------------
> > > siti:
> > > I haven't heard before the exact phase "in pdf and cdf."  Does cdf
> > > mean Cumulative Distribution Function?  Or something else, like a
> > > style of plotting?
>
> > > Does pdf mean "Probability Density Function" or "Portable Document
> > > Format"?  I.e., you either want to plot the histogram of your matrix,
> > > or you want to export your graph to a PDF format file.
>
> > > If you mean the statistical definitions, them you'll find these
> > > functions useful:
> > > plot() to plot line curves
> > > bar() to plot bar charts if you want the pdf or cdf in that form
> > > instead,
> > > hist() or histc() to get the pdf (the normalized histogram) of your
> > > data
> > > cumsum() to get cdf from pdf
> > > subplot if you want to layout 2 or more separate plots on one figure,
> > > hold on, if you want to plot a second curve without blowing away your
> > > first one.
> > > plotyy() if you want to plot two things, each with a different y scale/
> > > range.
>
> > > Good luck,
> > > ImageAnalyst
>
> > hi,
> > thanks for your idea. for your information, cdf means cumulative
> > distribution function. i've been asked to convert a triangle graph to
> > bell shaped graph and abscissa(normal CDF) graph. but, i don't know
> > how to do that.- Hide quoted text -
>
> > - Show quoted text -
>
> --------------------------------------------------------
> I don't either.  Makes no sense to me.  What have you tried so far?
> Or can you give an EXACT written description of your problem?  Is this
> anything like what you've tried?
> clc;
> close all;
> workspace;
> upramp = 1:50;
> downramp = 50: -1 : 1;
> triangleShape = [upramp downramp];
> subplot(1,2,1);
> bar(triangleShape);
> title('PDF that is a triangle');
> cdf = cumsum(triangleShape);
> subplot(1,2,2);
> bar(cdf);
> title('CDF of Trianglular PDF');
> set(gcf, 'Position', get(0, 'ScreenSize')); % Maximize figure.

sorry for unclear explanation. can i have your email so that i can
show you something on what i've been done.

Subject: Plot cdf and pdf graph

From: siti

Date: 20 Jul, 2009 07:14:59

Message: 6 of 6

On Jul 20, 11:58 am, siti <siti1...@gmail.com> wrote:
> On Jul 20, 11:15 am, ImageAnalyst <imageanal...@mailinator.com> wrote:
>
>
>
> > On Jul 19, 9:48 pm, siti <siti1...@gmail.com> wrote:
>
> > > On Jul 20, 4:26 am, ImageAnalyst <imageanal...@mailinator.com> wrote:
>
> > > > On Jul 19, 12:50 pm, siti <siti1...@gmail.com> wrote:
>
> > > > > hi,
> > > > > i got a problem to plot a graph in pdf and cdf. i have [9X1000X9]
> > > > > matrix data. how could i plot it in the form of cdf and pdf? i can't
> > > > > relate and apply what have been explained in help with my problem. can
> > > > > somebody help or share idea with me?
>
> > > > > thanks
>
> > > > ---------------------------------------------------------------
> > > > siti:
> > > > I haven't heard before the exact phase "in pdf and cdf."  Does cdf
> > > > mean Cumulative Distribution Function?  Or something else, like a
> > > > style of plotting?
>
> > > > Does pdf mean "Probability Density Function" or "Portable Document
> > > > Format"?  I.e., you either want to plot the histogram of your matrix,
> > > > or you want to export your graph to a PDF format file.
>
> > > > If you mean the statistical definitions, them you'll find these
> > > > functions useful:
> > > > plot() to plot line curves
> > > > bar() to plot bar charts if you want the pdf or cdf in that form
> > > > instead,
> > > > hist() or histc() to get the pdf (the normalized histogram) of your
> > > > data
> > > > cumsum() to get cdf from pdf
> > > > subplot if you want to layout 2 or more separate plots on one figure,
> > > > hold on, if you want to plot a second curve without blowing away your
> > > > first one.
> > > > plotyy() if you want to plot two things, each with a different y scale/
> > > > range.
>
> > > > Good luck,
> > > > ImageAnalyst
>
> > > hi,
> > > thanks for your idea. for your information, cdf means cumulative
> > > distribution function. i've been asked to convert a triangle graph to
> > > bell shaped graph and abscissa(normal CDF) graph. but, i don't know
> > > how to do that.- Hide quoted text -
>
> > > - Show quoted text -
>
> > --------------------------------------------------------
> > I don't either.  Makes no sense to me.  What have you tried so far?
> > Or can you give an EXACT written description of your problem?  Is this
> > anything like what you've tried?
> > clc;
> > close all;
> > workspace;
> > upramp = 1:50;
> > downramp = 50: -1 : 1;
> > triangleShape = [upramp downramp];
> > subplot(1,2,1);
> > bar(triangleShape);
> > title('PDF that is a triangle');
> > cdf = cumsum(triangleShape);
> > subplot(1,2,2);
> > bar(cdf);
> > title('CDF of Trianglular PDF');
> > set(gcf, 'Position', get(0, 'ScreenSize')); % Maximize figure.
>
> sorry for unclear explanation. can i have your email so that i can
> show you something on what i've been done.


i just got it. i used normcdf and normpdf.

thanks

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
cdf plot Sprinceana 19 Jul, 2009 16:40:22
pdf graph Sprinceana 19 Jul, 2009 16:40:22
cdf Sprinceana 19 Jul, 2009 16:40:22
pdf Sprinceana 19 Jul, 2009 16:40:22
rssFeed for this Thread

Contact us at files@mathworks.com