help-octave
[Top][All Lists]
Advanced

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

Re: randn newbie question


From: Mike Miller
Subject: Re: randn newbie question
Date: Sat, 5 Feb 2005 11:29:30 -0600 (CST)

On Sat, 5 Feb 2005, Hamish Allan wrote:

Why does:

plot(randn(2,100)', '+')

which looks like this in Matlab:

http://igor.gold.ac.uk/~map01ra/matlab_randn.jpeg

look like this in Octave:

http://igor.gold.ac.uk/~map01ra/octave_randn.jpeg


In Octave 2.1.50 on Linux, it doesn't look like your octave_randn figure above, it looks like the matlab_randn except that the points are all red instead of blue and green. The distribution in your octave plot is all wrong - the points are not normally distributed. Is it possible that you somehow defined a new randn function? Your distribution in Octave is a strange, symmetrical mixture.

Mike



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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