MathGroup Archive 2006

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

Search the Archive

Re: making random matrix

  • To: mathgroup at smc.vnet.net
  • Subject: [mg70603] Re: making random matrix
  • From: dimmechan at yahoo.com
  • Date: Sat, 21 Oct 2006 05:13:38 -0400 (EDT)
  • References: <eha5d4$b5p$1@smc.vnet.net>

Dear amit below I reply to both of your questions
appeared to the forum.

---------------------------------------------------------------------------

Amit you did a very common mistake for beginners

You use the ( ' ) key  instead of the correct (`) key!

Try the following command and everything is ok.

<< Statistics`NormalDistribution`

That is the two singles quotes used here are "back quotes"
usually found on the same key with ~.
They are NOT the single quotes found on the double-quote key.

Note that the back-quote character is used to separate the package
from the directory name, and at the end in place of .m.

See the following link for more information.

http://documents.wolfram.com/mathematica/book/section-2.7.9

Following also one of the invaluable suggestions of David Park
I recomend you to use the following command in order to load the
package.

Needs["Statistics'NormalDistribution`"]

In this way you avoid conflicts of possible reloading of the package.

------------------------------------------------------------------------------------------------

Quit;

Needs["Statistics'NormalDistribution`"]

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

Short[A, 10]
{{-1.75322,-0.247967,-2.68635,1.29424,0.380364,-1.62125,-0.528304,2.25784,-1.00949,-0.431655,-0.274747,-0.622596,-0.815011,0.256722,0.119237,1.43929,-0.628257,1.02232,0.409955,0.624702,-0.264368,-0.468273,0.681124,?54?,1.325,-0.0422575,0.480458,-0.313436,1.24843,0.795454,0.566263,-0.681634,-0.462671,0.462462,0.712621,0.749601,-0.499914,-0.320854,1.38791,-1.21499,-0.440779,-1.80247,-1.70404,-1.13906,0.8714,-0.242595,-1.81064},?99?}

--------------------------------------------------------------------------------------------------------
 
Regards
Dimitris


  • Prev by Date: Re: Problem in loading packages in Mathematica
  • Next by Date: Re: damped oscilations data fit
  • Previous by thread: Re: making random matrix
  • Next by thread: Re: making random matrix