comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » extracting values from an array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
extracting values from an array [message #44281] Wed, 01 June 2005 11:44
Francois L. is currently offline  Francois L.
Messages: 19
Registered: December 2004
Junior Member
Hello,

Probably a simple question...

I have an array A and I want to extract values greater than -1.
> A = [2,-1, -1, 3,-1,-1, 4, -1]
> w = where(a gt -1)
> if w[0] gt -1 then b = a[w]

Is there a cleaner and faster way to do this ?

Thanks,

Fran�ois.
[Message index]
 
Read Message
Previous Topic: Georeferencing info in tiff files?
Next Topic: data comparison

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 09:45:12 PDT 2025

Total time taken to generate the page: 0.14060 seconds