|
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
|