create a 3D average curve from two 3D curves
I have curves M1 and M2 composed of x nodes in space.
Is it possible to create an average curve (up to a specific height, from bottom to top – red curve) as in the figure?
load M1_and_M2.mat
figure
plot3(M1(:,1),M1(:,2),M1(:,3),’mo’,’Markersize’,4);
hold on
plot3(M2(:,1),M2(:,2),M2(:,3),’go’,’Markersize’,4);
hold off
axis equal
xlabel(‘x’)
ylabel(‘y’)
zlabel(‘z’)
grid offI have curves M1 and M2 composed of x nodes in space.
Is it possible to create an average curve (up to a specific height, from bottom to top – red curve) as in the figure?
load M1_and_M2.mat
figure
plot3(M1(:,1),M1(:,2),M1(:,3),’mo’,’Markersize’,4);
hold on
plot3(M2(:,1),M2(:,2),M2(:,3),’go’,’Markersize’,4);
hold off
axis equal
xlabel(‘x’)
ylabel(‘y’)
zlabel(‘z’)
grid off I have curves M1 and M2 composed of x nodes in space.
Is it possible to create an average curve (up to a specific height, from bottom to top – red curve) as in the figure?
load M1_and_M2.mat
figure
plot3(M1(:,1),M1(:,2),M1(:,3),’mo’,’Markersize’,4);
hold on
plot3(M2(:,1),M2(:,2),M2(:,3),’go’,’Markersize’,4);
hold off
axis equal
xlabel(‘x’)
ylabel(‘y’)
zlabel(‘z’)
grid off curve, nodes, average, mean, 3d plots, 3d, interpolation, interp MATLAB Answers — New Questions