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

Home » Public Forums » archive » Using where to create new variables of data
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: Using where to create new variables of data [message #83806 is a reply to message #83676] Fri, 29 March 2013 17:12 Go to previous messageGo to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
Just piggy-backing on Russell's answer....

ARRAY_INDICES is something to look into:

http://www.exelisvis.com/docs/ARRAY_INDICES.html

It will take the 1D array of indices from WHERE and give a 2D array to access your data. See the example in the documentation - it uses MAX, but the concept is similar.

It's also perfectly valid to use the 1D array to access the array - you will lose the dimensionality though.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Calculating difference between each element in array from previous
Next Topic: Calculating difference between each element in array from previous

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

Current Time: Sat Oct 11 21:26:50 PDT 2025

Total time taken to generate the page: 1.76828 seconds