我想用matlab绘制三维图,但是绘制出来的三维图是一个薄片的样子,有没有办法将图片进行加厚啊?
我的原来的代码是这样的
clc; clear;
m=2;
n=1;
[x,y] = meshgrid(0:0.1:3,0:0.1:3);
z=sin(m*x).*sin(n*y);
B=surf(z);

 채택된 답변

0 개 추천

可以考虑直接叠加绘图
更多的可参考
例如
m=2;
n=1;
[x,y] = meshgrid(0:0.1:3,0:0.1:3);
z=sin(m*x).*sin(n*y);
figure; hold on; view(3)
for t = -0.5:0.01:0.5
hold on; surf(z+t);
end
shading interp

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 图形性能에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!