Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


faraz.a
Posts:
4
Registered:
5/25/13


how to generate a gaussian distribution using random number generator
Posted:
Jul 3, 2013 7:52 PM


i want to generate 50,000 samples according to the gaussian distribution using random number generator where sigma=1 and mean=0 X is a normally distributed random variable N(0,?2). mean=0 variance=1
I did this R=randn(50000)
i got an error
Error using randn Out of memory. Type HELP MEMORY for your options.
and if i am using R=randn(50000,1); hist(R)
this generated a distribution but the y label was ranging from 4 to 5. I want it from infinity to +infinity
how to do that?



