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

Home » Public Forums » archive » Referencing elements of array expressions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Referencing elements of array expressions [message #3527] Fri, 03 February 1995 14:25
Evan F. Fishbein is currently offline  Evan F. Fishbein
Messages: 6
Registered: February 1995
Junior Member
A simple question -- Is is possible to reference elements
of array expressions. For example, can the last two lines of
the following code:

x=findgen(40)/10.0
y=cos(2.0*!pi*x)
i=where(abs(y) lt 1.0e-5)
i=i(0:1)+[-1,1]

be combined into one line by accessing the first
element of the expression "where(abs(y) lt 1.0e-5)"
without placing the vector result in a dumy array variable?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Need efficient routine to calculate max of two arrays
Next Topic: Data Acquisition under IDL for Windows - sce code available

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

Current Time: Wed Oct 08 19:22:50 PDT 2025

Total time taken to generate the page: 0.00412 seconds