Site hosted by Angelfire.com: Build your free website today!

curveintersect

PURPOSE ^

CURVEINTERSECT Curve Intersections.

SYNOPSIS ^

function [x,y]=curveintersect(varargin)

DESCRIPTION ^

 CURVEINTERSECT Curve Intersections.
 [X,Y]=CURVEINTERSECT(H1,H2) or [X,Y]=CURVEINTERSECT([H1 H2]) finds the
 intersection points of the two curves on the X-Y plane identified
 by the line or lineseries object handles H1 and H2.

 [X,Y]=CURVEINTERSECT(X1,Y1,X2,Y2) finds the intersection points of the
 two curves described by the vector data pairs (X1,Y1) and (X2,Y2).

 X and Y are empty if no intersection exists.

 Example:
 nofigs;
 h1 = plotr(porewaterB(:,1),-porewaterB(:,2),'-mo');
 hold on;
 h2=plotr(timefunc/86400,-porar(35,:)');
 [xc,yc]=curveintersect(h1,h2);
 [xc,yc]=curveintersect(h1,h2,'plot'); % plots the data and shows value on gcf
 plotr(xc,yc,'rx','markersize',10)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^


Generated on Sat 12-Mar-2005 01:01:49 by Rezaul Karim © 2004