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

Home » Public Forums » archive » Looking for a search routine
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Looking for a search routine [message #5274] Tue, 21 November 1995 00:00 Go to previous message
jvkepner is currently offline  jvkepner
Messages: 10
Registered: November 1995
Junior Member
I have two 1D floating point vectors X and Y.
Y contains values sorted in increasing order. I am
looking for a function that for each element in the
X array, X(i), will return the index of the element in the
Y array that is nearest to X(i). Ideally it would
be a function that would look something like

y_ids = SEARCH(X,Y)

-Jeremy Kepner
Dept. of Astrophysics
Princeton University
[Message index]
 
Read Message
Read Message
Previous Topic: Please explain...
Next Topic: Importing IDL Postscript output into Windows apps

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

Current Time: Fri Oct 10 02:18:49 PDT 2025

Total time taken to generate the page: 0.95919 seconds