function h = showface(z,zoo)
cla reset;
[x,y] = meshgrid(1:size(z,2),1:size(z,1))
h = surface(fliplr(x),flipud(z),y);
axis on
axis equal
shading flat
view(-160,20)
colormap hsv
colorbar
li=light('position',[0 1 0]);
lighting('Gouraud');
set(h,'AmbientStrength',0,'DiffuseStrength',1,'LineStyle','none','SpecularStrength',0)
set(gcf,'renderer','zbuffer')
set(gca,'position',[0 0 1 1])
if nargin == 1
zoo = 3;
end
zoom(zoo)
0 Comments
Sign in to comment.