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)