www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/Display3DSurfaceNormalsForConePlotExample.m
%% Display 3-D Surface Normals for Cone Plot % Compute and plot the normal vectors for a truncated cone. Set the axis % limits using the |axis| function. % Copyright 2015 The MathWorks, Inc. [x,y,z] = cylinder(1:10); figure surfnorm(x,y,z) axis([-12 12 -12 12 -0.1 1])