MathGroup Archive 2005

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

Search the Archive

Re: Matrices and Conditional Statements

  • To: mathgroup at smc.vnet.net
  • Subject: [mg61466] Re: Matrices and Conditional Statements
  • From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
  • Date: Wed, 19 Oct 2005 02:17:33 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <dj26om$bcr$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

X = Table[Random[], {10}, {12}];

Y = X; Y[[All, 8]] = "red"; Y[[All, 11]] = Y[[All, 
9]] + 1;

???

Regards

  Jens

"Gregory Lypny" <gregory.lypny at videotron.ca> 
schrieb im Newsbeitrag 
news:dj26om$bcr$1 at smc.vnet.net...
| Hello Everyone,
|
|     If I have an n x m array called X, how can I 
create another
| array, Y, whose rows are those rows in X whose 
8th column contains
| the word "red" and whose 11th column is a number 
greater than 9?
|
|     Regards,
|
|         Greg
| 



  • Prev by Date: Re: Matrices and Conditional Statements
  • Next by Date: Re: Matrices and Conditional Statements
  • Previous by thread: Re: Matrices and Conditional Statements
  • Next by thread: Re: Matrices and Conditional Statements