%% Disable Automatic Scaling
% By default, the quiver3 function shortens arrows so they do not overlap. To disable automatic scaling so that arrow lengths are determined entirely by U, V, and W, set the scale argument to 0.
% For example, first return the x-,  y-, and z-coordinates of a unit sphere with 10-by-10 faces. Calculate the directional components of its surface normals using the surfnorm function. Then, create a 3-D quiver plot with no automatic scaling.

[X,Y,Z] = sphere(10);
[U,V,W] = surfnorm(X,Y,Z);
quiver3(X,Y,Z,U,V,W,0)
axis equal

% For comparison, create the plot with automatic scaling. Note that the arrows are shorter and do not overlap.

figure
quiver3(X,Y,Z,U,V,W)
axis equal

% Copyright 2020 The MathWorks, Inc.