MathGroup Archive 2006

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

Search the Archive

Re: making random matrix


Needs["Statistics`"];

NormalDistribution[ ] defaults to NormalDistribution[0, 1]

#[NormalDistribution[ ]]& /@ {Mean, StandardDeviation}

{0,1}

n=100 ;
A = RandomArray[NormalDistribution[], {n, n}];

#[Flatten[A]]& /@ {Mean, StandardDeviation}

{0.00534244,1.00117}


Bob Hanlon

---- "amitsoni.1984 at gmail.com" <amitsoni.1984 at gmail.com> wrote: 
> Hi, I want to make a normally distributed random matrix for which I am
> using the following command. But it is not giving any result.
> 
> n=100
> A = RandomArray[NormalDistribution[], {n, n}]
> 
> Do I need to load any package to get this working. Please tell me how
> to do that?
> 
> Thanks
> 
> Amit
> 

--

Bob Hanlon
hanlonr at cox.net



  • Prev by Date: Re: Display glitch: \[ImaginaryI] appears as just "i"
  • Next by Date: Re: "short circuiting" And and Or
  • Previous by thread: making random matrix
  • Next by thread: Re: making random matrix