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

Home » Public Forums » archive » Re: 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
Re: extracting values from an array [message #44252] Thu, 02 June 2005 17:32 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <1117744798.399372.98360@g14g2000cwa.googlegroups.com>,
caitouer@yahoo.com wrote:

> I normally do this:
> b=a(where(a gt -1))
> then b=[2,3,4]
> Cheers,
> Caitouer
>

That's OK until WHERE returns a -1 (nothing found). For robust code,
check the COUNT values.

Ken Bowman
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Python reader for IDL save files.
Next Topic: GUI states

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

Current Time: Wed Oct 08 19:20:02 PDT 2025

Total time taken to generate the page: 0.00587 seconds