MathGroup Archive 2005

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

Search the Archive

Re: Matrix question

  • To: mathgroup at
  • Subject: [mg60308] Re: [mg60287] Matrix question
  • From: "Matthias Bode" <lvsaba at>
  • Date: Sat, 10 Sep 2005 22:36:28 -0400 (EDT)
  • References: <>
  • Sender: owner-wri-mathgroup at

Do you like this:

MatrixForm[Partition[Table[If[Random[] <= 0.15, 1, 0], {100}], 10]]


Best regards,

Matthias Bode.

----- Original Message ----- 
From: "sandog" <sandog at>
To: mathgroup at
Subject: [mg60308] [mg60287] Matrix question

>i want to create a NxN matrix with zeros but i want a percentage of the 
>matrix spots to be one at random spots any idea? cause i have no clue how 
>to do that.
> Any help appreciated thx .

  • Prev by Date: Re: Matrix question
  • Next by Date: Re: Re: Condition for pure functions
  • Previous by thread: Re: Matrix question
  • Next by thread: Re: Matrix question