MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Normally Distributed Random Matrix


$Version

5.2 for Mac OS X (June 20, 2005)

<<Statistics`NormalDistribution`;
n=500;
A=RandomArray[NormalDistribution[],{n,n}];

Dimensions[A]

{500,500}

You may have shadowed the definition of RandomArray, Start with a fresh kernel.


Bob Hanlon

---- "amitsoni.1984 at gmail.com" <amitsoni.1984 at gmail.com> wrote: 
> Hi,
> 
> I want to create a normally distributed random matrix in Mathematica.
> I'm using the following code in Mathematica 5.2:
> 
> ------------- code -----------------------------
> << Statistics`NormalDistribution`
> n = 500;
> A = RandomArray[NormalDistribution[], {n, n}]
> ------------------------------------------------
> 
> But it is not working even though it worked when I did it earlier on
> Linux. When I enter A it just gives:
> 
> ------------------------------------------------
> A
> RandomArray[NormalDistribution[], {500, 500}]
> ------------------------------------------------
> 
> Can anyone help me with this?
> 
> Thank you,
> Amit
> 
> 



  • Prev by Date: Re: What is the compatibility guide?
  • Next by Date: Problems updating Graphics3D Polygons
  • Previous by thread: Normally Distributed Random Matrix
  • Next by thread: Re: Normally Distributed Random Matrix