数学建模社区-数学中国

标题: 【奠基经典】MATLAB实用程序案例之片状图的绘制 [打印本页]

作者: 青年梦想家    时间: 2015-7-24 23:55
标题: 【奠基经典】MATLAB实用程序案例之片状图的绘制






片状图的绘制
实例:

function shili22

h0=figure('toolbar','none',...

'position',[200 150 550 350],...

'name','实例22');

subplot(1,2,1)

x=rand(1,20);

y=rand(1,20);

z=peaks(x,y*pi);

t=delaunay(x,y);

trimesh(t,x,y,z)

hidden off

title('Figure1:Triangular Surface Plot');

subplot(1,2,2)

x=rand(1,20);

y=rand(1,20);

z=peaks(x,y*pi);

t=delaunay(x,y);

trisurf(t,x,y,z)

title('Figure1:Triangular Surface Plot');



关于本帖内容欢迎大家踊跃讨论,与在下交流!






欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) Powered by Discuz! X2.5