How to find point(s) of intersection between two scatter surfaces and the zero plane?
Show older comments
Please help, I have searched a lot for this inquiry, but couldn't find anything to solve my issue;
I have two surfaces (green and red in image), and the zero plane (black). I need an algorithm that will find the point(s) where all three surfaces meet. I was able to create a line (black and blue in image) at surface interfaces, but was unable to find distinct points of intersection. The surfaces are created with following code
x1=eCLdata(:,1);
y1=eCLdata(:,2);
Z1=eCLdata(:,3);
Z2=eCLdata(:,4);
Z3=zeros(400,1);
xlin=linspace(min(x1),max(x1),50);
ylin=linspace(min(y1),max(y1),50);
[X,Y]=meshgrid(xlin,ylin);
f1=scatteredInterpolant(x1,y1,Z1);
Ze=f1(X,Y);
f2=scatteredInterpolant(x1,y1,Z2);
Zp=f2(X,Y);
f3=scatteredInterpolant(x1,y1,Z3);
Z0=f3(X,Y);

So the surfaces are stored in three arrays with x,y,z values. The data was generated from very complicated procedures, so I can't work directly with the data source, I just have the scatter data to work with.
Please help?
Erin
Accepted Answer
More Answers (0)
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
