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

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -