surface plot from 3d points
3 次查看(过去 30 天)
显示 更早的评论
Hello,
I am trying to plot a 3d surface from a collection of points that I have(X, Y, Z).
I have tried a couple of ways:
Use surface preparation code from matlab curve fitting toolbox. However, the plot does not capture the curvature too well. The point are most suited to an axisymmetric cup. My goal is to extract the equation of the axisymmetric surface curve. I woulld glad if someone could provide some suggestions. Thanks in advance.

d=importdata(values2.csv') ;
x=d(:,4);
y=d(:,5);
z=d(:,6);
X=x;Y=y; Z=z;
surffit = fit([x,y],z,'poly23','normalize','on')
plot(surffit,[x,y],z)
view([-23.83 49.71])
%%
plot(surffit,[x,y],z,'Style','lowess')
hold on
%%
plot(surffit,[x,y],z,'Style','Residuals')
%% Get the model equation
surffit
hold on
formula(surffit)

This is how i expect the surface to look like.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interpolation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!