MathGroup Archive 2005

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

Search the Archive

Re: Matrices and Conditional Statements

  • To: mathgroup at smc.vnet.net
  • Subject: [mg61432] Re: [mg61405] Matrices and Conditional Statements
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Wed, 19 Oct 2005 02:16:10 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

Y = Select[X, #[[8]] == "red" &&
        NumericQ[#[[11]]] && #[[11]] > 9 &]


Bob Hanlon

> 
> From: Gregory Lypny <gregory.lypny at videotron.ca>
To: mathgroup at smc.vnet.net
> Date: 2005/10/18 Tue AM 02:44:52 EDT
> Subject: [mg61432] [mg61405] Matrices and Conditional Statements
> 
> 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: boolean function, interpolation
  • Previous by thread: Re: Matrices and Conditional Statements
  • Next by thread: Re: Matrices and Conditional Statements