Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14842
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Position |
| Date | 2013-06-14 08:47 +0000 |
| Message-ID | <kpelaj$hr0$1@smc.vnet.net> (permalink) |
| References | <20130613063735.5C0A96A3D@smc.vnet.net> |
| Organization | Time-Warner Telecom |
t = RandomReal[{0, 5}, 100];
Position[t, _?(# > 2 &)] // Length
59
Position[Thread[t > 2], True] // Length
59
Bob Hanlon
On Thu, Jun 13, 2013 at 2:37 AM, Costa Bravo <q13a27tt@aol.com> 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
Re: Position Bob Hanlon <hanlonr357@gmail.com> - 2013-06-14 08:47 +0000
csiph-web