contour_lines_tracer

by

 

makes a table (X,Y,Z), contained interpolated data of same-Z points from input points massif.

[C,l]=viborka(i,x,y,z)
function [C,l]=viborka(i,x,y,z)
C=[z(i),x(i),y(i)];
l=1;
for n=1:165
for j=1:20
if abs(x(i)-x(n))<0.05*j & abs(y(i)-y(n))<0.05*j & i<n & z(i)==z(n)
C=[C;z(n),x(n),y(n)];
i=n;
l=l+1;
end
if l==4, break, end
end
end
end

Contact us