Create a surface between two sets of 3d data points
이전 댓글 표시
Hi,
I have 2 sets of data points that create lines on a 3-Dimensional plot.
I would like create a linear surface between the two sets of data points. Each data point on one set of data would correspond with the data point on the other set. I am unsure of how to go about this other than finding a linear equation for each coupled data points.
r1 = [-2.2607e-05; 1.1301e-08; 1.4319e-04; -1.4319e-04];
x = linspace(0,1000);
y = x;
u1_3 = (r1(1)*x.^2 + r1(2)*y.^3);
figure(3)
hold on
grid on
scatter3(x,y,u1_3-100,'b')
X2 = linspace(0,0);
Y2 = linspace(0,1000);
Z2 = linspace(0,0);
scatter3(X2,Y2,Z2-100,'k')
zlim([-1e3 0])
ylim([-1000 1000])
xlim([-1000 1000])
xlabel('x (meters)')
ylabel('y (meters)')
zlabel('Deflection, m/V')
hold off
Any help on this is much appreciated!
댓글 수: 5
Clayton Gotberg
2021년 4월 19일
I'm al bit confused about your goal here. Do you want to take two sets of coordinates and create a surface that is always in the middle of both of them? See the below chart (but imagine it in 3 dimensions instead).

Matthew Davenport
2021년 4월 19일
Matthew Davenport
2021년 4월 19일
Sean de Wolski
2021년 4월 19일
What are you trying to do with this surface? Just visualizing, using it to interpolate?
Matthew Davenport
2021년 4월 19일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
