www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/CreateSurfacePlotWithColormapBasedLightingExample.m
%% Create Surface Plot With Colormap-Based Lighting % Create a surface plot of the |peaks| function using colormap-based % lighting. Set the |shading| to |interp| to interpolate the colors across lines and faces. % Copyright 2015 The MathWorks, Inc. [x,y] = meshgrid(-3:1/8:3); z = peaks(x,y); surfl(x,y,z) shading interp