www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/ChangeLightingAndLineWidthForMeshPlotExample.m
%% Change Lighting and Line Width for Mesh Plot % Change the lighting and the line width for a mesh plot using |Name,Value| pair arguments. % Copyright 2015 The MathWorks, Inc. [X,Y] = meshgrid(-8:.5:8); R = sqrt(X.^2 + Y.^2) + eps; Z = sin(R)./R; C = del2(Z); figure mesh(X,Y,Z,C,'FaceLighting','gouraud','LineWidth',0.3)