MathGroup Archive 2013

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

Search the Archive

Re: Position


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
>






  • Prev by Date: Re: Removing list elements in x by list y
  • Next by Date: running mathematica from command line
  • Previous by thread: Re: Position
  • Next by thread: Re: Position