|
Re: Accessing an element of an array operation [message #2349 is a reply to message #2347] |
Tue, 07 June 1994 11:31  |
crdmi
Messages: 10 Registered: February 1994
|
Junior Member |
|
|
In article <2t2ai3$87@usenet.INS.CWRU.Edu>, at913@cleveland.Freenet.Edu (Mirko Vukovic) writes:
> temp=convol(a,b)
> a=temp(5)
> Is it possible in IDL to shorten the above by directly accessing the sixth
> (in the above example) element of the convolution by doing something like:
> a=convol(a,b)(5)?
Yes. The proper syntax is:
a=(convol(a,b))(5)
The extra parens are apparently necessary to tell IDL what the (5) is
subscripting.
--
Daniel M. Israel "So you better hope there's intellegent
<crdmi@vulcan.giss.nasa.gov> life somewhere out in space, 'cause there's
Goddard Institute of Space Studies bugger all down here on Earth!"
2880 Broadway, New York, NY -Monty Python's "Universe Song"
|
|
|