%% Create Surface Plot With Surface Normals
% Create a cone. Then plot the data as a surface and display the surface normals. The surface uses Z for both height and color.

[X,Y,Z] = cylinder(1:10);
surfnorm(X,Y,Z)

% Copyright 2015 The MathWorks, Inc.