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

Home » Public Forums » archive » IDL array subscripting issue
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
IDL array subscripting issue [message #90225] Thu, 12 February 2015 09:22 Go to previous message
David B is currently offline  David B
Messages: 18
Registered: January 2015
Junior Member
Now this is probably a simple and quick problem for someone with experience. I think I may have missed the point or fallen victim to a problem with an obvious solution.
===============================

IDL> a = INDGEN(10)
IDL> b = [0,10]
IDL> print, a[b]
0 9
IDL> b = [0,9]
IDL> print, a[b]
0 9

===============================
Why?!

David B
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Variable attributes and undef vars
Next Topic: CURVFIT with XY error

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

Current Time: Wed Oct 08 15:06:10 PDT 2025

Total time taken to generate the page: 0.00458 seconds