Re: Position
- To: mathgroup at smc.vnet.net
- Subject: [mg131155] Re: Position
- From: Helen Read <readhpr at gmail.com>
- Date: Fri, 14 Jun 2013 05:04:16 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-outx@smc.vnet.net
- Delivered-to: mathgroup-newsendx@smc.vnet.net
- References: <kpbp24$95n$1@smc.vnet.net>
Here's one solution. Map[Position[t, #] &, Select[t, # > 2 &]] // Flatten Helen Read University of Vermont On 6/13/2013 2:32 AM, Costa Bravo wrote: > How can I find the indices of all elements greaters than e.g. 2 of a vector. > > t=RandomReal[{0,5},100] > Position[t,??] > > -- > Costa >