MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB图像处理] trimesh和trisurf问题 (https://www.labfans.com/bbs/showthread.php?t=8137)

kingoftime3 2009-05-07 11:24

trimesh和trisurf问题
 
这两个函数所需要的参数都一样。
trimesh(tri,x,y,z)
在matlab有一个例子
[x,y]=meshgrid(1:15,1:15);
tri = delaunay(x,y);
z = peaks(15);
trimesh(tri,x,y,z)
这里的x,y,z都是[15*15]的矩阵,
但要是x,y,z是[1*n]矩阵也一样可以画出来。
是不是在x,y,z是[1*n]矩阵时,它也会将它们扩展成[n*n]的再画?


所有时间均为北京时间。现在的时间是 10:32

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.