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

Home » Public Forums » archive » select first n elements of array without loop
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
select first n elements of array without loop [message #72019] Wed, 04 August 2010 13:00 Go to next message
Fermiona Fermiona is currently offline  Fermiona Fermiona
Messages: 17
Registered: June 2010
Junior Member
If I have an array and I want to select say, the first n elements
thereof, can I do so without using a loop.

For example if I want to select all the elements, I'd use an *

Thank you
Re: select first n elements of array without loop [message #72119 is a reply to message #72019] Fri, 06 August 2010 15:22 Go to previous message
James[2] is currently offline  James[2]
Messages: 44
Registered: November 2009
Member
Fermiona, based on your two questions, I suggest you read the "Arrays"
section of the IDL manual, available online at
http://idlastro.gsfc.nasa.gov/idl_html_help/Arrays.html . IDL has
some pretty uncommon and useful capabilities in this department that
you might like to know about.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: concatenate by columns
Next Topic: Decided on Trail Name

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

Current Time: Wed Oct 08 09:16:19 PDT 2025

Total time taken to generate the page: 0.01126 seconds