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

Home » Public Forums » archive » Re: Subscripting multidimensional arrays
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: Subscripting multidimensional arrays [message #37275 is a reply to message #37274] Fri, 12 December 2003 11:44 Go to previous messageGo to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"R.G. Stockwell" <noemail@please.com> wrote in message
news:5smCb.14$SO3.23741@news.uswest.net...
>
> This will work if you always have a 3D array (or do you want to be able to
> index with an array for an arbitary size array?)


ok, just for kicks, for arbitary array and location vector:
(here I use "loc" as the location vector, i.e. loc = [2,2,1] )

execode = execute('result =
a['+string(loc,format='('+string(n_elements(loc))+'(I,:,",")) ')+']')
print,result



Cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: rebinning data on new time samples without loops?
Next Topic: Re: 2D FFT Slow. Any ideas? fft2()

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

Current Time: Fri Oct 10 17:43:17 PDT 2025

Total time taken to generate the page: 1.06360 seconds