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

Home » Public Forums » archive » Re: Getting rid of loops
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: Getting rid of loops [message #18931 is a reply to message #18926] Thu, 17 February 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Mark Hadfield (m.hadfield@niwa.cri.nz) writes:

> The UNIQ function, along with the SORT function, will do this:
>
> print, UNIQ(cycles, SORT(cycles))
>
> or if you know that your array is already monotonic, just:
>
> print, UNIQ(cycles)

Uh, actually:

print, cycles(UNIQ(cycles))

But we know what you mean. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: How to do a weighted fit using pv-wave?
Next Topic: Re: TeXtoIDL fix for IDL 5.3

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

Current Time: Sat Oct 11 06:53:44 PDT 2025

Total time taken to generate the page: 0.80090 seconds