X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 01 Nov 2005 01:18 PM by  anon
Difference between array indexing with explicit index and variable index
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
01 Nov 2005 01:18 PM
    Suppose: IDL> i=[0,1,2,3] IDL> x=[10,20,30] Why does x[i] yield: IDL> print, x[i] 10 20 30 30 While x[3] produces the usual error: IDL> print, x[3] % Attempt to subscript X with is out of range. % Execution halted at: $MAIN$
    You are not authorized to post a reply.