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

Home » Public Forums » archive » Is there a quick way to find the intersection of two lines?
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
Is there a quick way to find the intersection of two lines? [message #58615] Mon, 04 February 2008 16:08
eyuchen is currently offline  eyuchen
Messages: 8
Registered: February 2008
Junior Member
Hi there,

I have two sets of x-y data:
x1=[1,2,3,4,5] y1=[3.2,7.4,8.2,9.3,7.9];
x2=[1.2,1.4,2.3,2.8,3.3,3.9,4.1,4.5,5.2]
y2=[3.1,5.2,6.2,7.3,7.5,8.6,9.6,8.7,7.4];

By running:
plot, x1, y1
oplot, x2, y2
we can clearly see that there are four intersections, but it is not
clear what are the x,y coordinates of these points.

Is there an easy way to do it? Thank you very much.

Eugene
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: WIDGET_BASE always on top
Next Topic: Re: New netCDF Browser

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

Current Time: Wed Oct 08 15:21:43 PDT 2025

Total time taken to generate the page: 0.00552 seconds