MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   TriScatteredInterp问题 (https://www.labfans.com/bbs/showthread.php?t=24020)

poster 2019-12-10 20:48

TriScatteredInterp问题
 
我有两组分散的数据xyz和x2 y2 z2

以下代码应产生两个重叠的曲面图

F = TriScatteredInterp(x,y,z); z2i=F(x2,y2); tri = delaunay(x,y); plot = trisurf(tri,x2,y2,z2,'edgeColor','blue','FaceColor','blue','FaceAlpha',.5); hold on trisurf(tri,x2,y2,z2i,'edgeColor','red','FaceColor','red','FaceAlpha',.5); 不知何故,这两个地块甚至还不接近。有人知道这怎么可能吗?



[B]回答:[/B]

由于您要从第一组x和y移至第二组x2和y2,因此请基于x2和y2计算三角剖分。

tri = delaunay(x2,y2); 不要忘了最后hold off 。



[url=https://stackoverflow.com/questions/3965199]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 23:19

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