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

Home » Public Forums » archive » what is the highest subscript in the 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: what is the highest subscript in the array?!? [message #70861 is a reply to message #70774] Fri, 07 May 2010 02:34 Go to previous messageGo to previous message
Carsten Lechte is currently offline  Carsten Lechte
Messages: 124
Registered: August 2006
Senior Member
munka wrote:
> IDL> array=indgen(10)
[...]
> IDL> print,array[[10]]
> 9

Well, your could use lasti = [9223372036854775807LL] to define an "index"
that will give you the last array element in most cases.
(Until someone sets COMPILE_OPT STRICTARRSUBS, at least)

IDL> print, array[lasti]
9

And possibly, God kills a kitten everytime someone uses this abomination.


chl
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Plotting 3D array as a 'cloud'
Next Topic: Re: Begin-End matching in IDLDE?

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

Current Time: Wed Oct 08 17:54:30 PDT 2025

Total time taken to generate the page: 0.00451 seconds