Matlab 如何在多线3d打印上创建曲面打印?

Matlab 如何在多线3d打印上创建曲面打印?,matlab,plot,3d,contour,Matlab,Plot,3d,Contour,使用plot3我创建了一个多离散线3d绘图。如何填充这些线创建的三维曲面(基本上用曲面连接线) 使用fill3会有所帮助 x = [0 0 5 5 0]; y = [5 5 0 0 5]; z = [0 5 5 0 0]; subplot(1,2,1) plot3(x,y,z,'LineWidth',5); grid on subplot(1,2,2) fill3(x,y,z,'y') grid on

使用
plot3
我创建了一个多离散线3d绘图。如何填充这些线创建的三维曲面(基本上用曲面连接线)

使用
fill3
会有所帮助

x = [0 0 5 5 0];
y = [5 5 0 0 5];
z = [0 5 5 0 0];
subplot(1,2,1)
plot3(x,y,z,'LineWidth',5);
grid on
subplot(1,2,2)
fill3(x,y,z,'y')
grid on