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 函数,我想获得与顶点或面相关的颜色