help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Octave propablity rand and randn


From: William Krekeler
Subject: RE: Octave propablity rand and randn
Date: Mon, 7 Nov 2011 17:27:16 +0000

I think he wants the PDF of some input vector.

 

Look at:

http://www.gnu.org/software/octave/doc/interpreter/Distributions.html

 

or to compute from a given x doing something like this

 

Nelements = 1000;

X = randn( Nelements );

xstd = std(X);

[ N, Xhist ] = hist( X,  (-10*xstd):(xstd/10):(10*xstd) );

PDF = N./ Nelements;

figure,plot( Xhist, PDF )

 

Also note, 'help command_name' will give you the help for that command.

 

William Krekeler


reply via email to

[Prev in Thread] Current Thread [Next in Thread]