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

Home » Public Forums » archive » Re: Basic Array Subscripting Question
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: Basic Array Subscripting Question [message #80303 is a reply to message #80302] Thu, 31 May 2012 03:20 Go to previous messageGo to previous message
greg.addr is currently offline  greg.addr
Messages: 160
Registered: May 2007
Senior Member
They're not the same. The second gives you [array[412,18],array[413,19]], which is often needed - the index arrays are enumerated pairwise. I think this means that when there's a colon present, the whole indexing expression is treated differently.

What I find odd is that you can make an expression a=b[3:5] giving b[[3,4,5]], but you can't have a=[3:5] giving a=[3,4,5], which would be very useful.

greg
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: put a variable in 2D-array to plot a contour on a map.
Next Topic: Basic Array Subscripting Question

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

Current Time: Sat Oct 11 07:31:38 PDT 2025

Total time taken to generate the page: 0.00178 seconds