How to find point(s) of intersection between two scatter surfaces and the zero plane?
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Surface and Mesh Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

