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

Home » Public Forums » archive » Re: How to spot maximum x value AND corresponding y value?
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: How to spot maximum x value AND corresponding y value? [message #69824] Thu, 18 February 2010 05:29 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
M. writes:

> So I know, with your suggestion, that my
> x_max_val let's say is located in the 7th row in the 1st col. BUT, how
> can I find out which y value (2nd col) is in the 7th row.

You know what you need? More coffee. Your brain
is not activated yet this morning! I would guess
the y value you are looking for is also in the 7th
row. If fact, the z value that goes with that x value
is *also* in the 7th row! :-)

x = array[0,7]
y = array[1,7]
z = array[2,7]

But, even when you get this sorted out, your troubles
are only beginning. I think you are going to have to
re-think (get a LOT of coffee!!) your original premise
on how to attached these points together. It's a lot
harder to do this correctly than you imagine. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Open URL in external browser
Next Topic: Re: Coyote Cojones

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

Current Time: Wed Oct 08 15:56:16 PDT 2025

Total time taken to generate the page: 0.00413 seconds