matlab - getting color information from surface plot -
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
i color associated vertices or faces if used surf2patch function in matlab
not sure you're looking for...
surf_h = findobj(gca, 'type', 'surf', 'tag', []); cdata = get(surf_h, 'cdata');
Comments
Post a Comment