MathGroup Archive 2005

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

Search the Archive

Re: How to "search" in a matrix?


On 10/2/05, David Park <djmp at earthlink.net> wrote:
> Renan,
>
> Use Position.
>
> matr = {{a, b, 1}, {c, d, 2}, {e, f, 3}};
>
> Position[matr, e]
> {{3, 1}}



GREAT! This is exactly what I was looking for. With further processing,

Thanks for all those that helped, esp. Jean-Marc Gulliet and David
Park: their suggestions were the most useful.

Thanks,
Renan "Wishmaster"
Canoas, Rio Grande do Sul, Brasil


  • Prev by Date: BinCounts
  • Next by Date: LogGamma[z] vs Log[Gamma[z]] behavior
  • Previous by thread: How to "search" in a matrix?
  • Next by thread: Re: How to "search" in a matrix?