0
spX = linspace(min(x), max(x),200);
spY = linspace(min(y), max(y),200);
[xC,yC] = meshgrid(spX,spY);

zC = bin2mat(x,y,z,xC,yC);
zCi = inpaint_nans(zC);

figure;
surface(xC(1,:),yC(:,1),zC);
shading('interp');
axis equal

如果我在 matlab 中使用 surf2patch 函数,我想获得与顶点或面相关的颜色

4

1 回答 1

0

不太确定你在找什么...

surf_h = findobj(gca, 'Type', 'Surf', 'Tag', []);
CData  = get(surf_h, 'CData');
于 2013-05-09T01:38:28.047 回答