MathGroup Archive 2013

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

Search the Archive

Re: Position


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