MathGroup Archive 2005

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

Search the Archive

Re: Matrices and Conditional Statements


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