Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2013

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

Search the Archive

Re: Position

  • To: mathgroup at smc.vnet.net
  • Subject: [mg131173] Re: Position
  • From: David Bailey <dave at removedbailey.co.uk>
  • Date: Sat, 15 Jun 2013 04:24:28 -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>

On 13/06/2013 07:32, 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
>
Flatten[Position[t, x_ /; x > 2]]

David Bailey
http://www.dbaileyconsultancy.co.uk




  • Prev by Date: fit curve on to an imported graph
  • Next by Date: Getting the plotted data from a graph
  • Previous by thread: Re: Position
  • Next by thread: Re: Position