Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14854

Re: Position

From Waclaw Kusnierczyk <waku@idi.ntnu.no>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Position
Date 2013-06-14 08:51 +0000
Message-ID <kpelir$hsh$1@smc.vnet.net> (permalink)
References <20130613063735.5C0A96A3D@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


One way is to put a condition on a pattern:

    Flatten@Position[t, x_ /; x>2]

See help for Condition.

vQ

On 06/13/2013 08:37 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
>

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Position Waclaw Kusnierczyk <waku@idi.ntnu.no> - 2013-06-14 08:51 +0000

csiph-web