%% Set Contour Label Spacing
% Set the label spacing to 72 points (1 inch).

[x,y,z] = peaks;
[C,h] = contour(x,y,z);
clabel(C,h,'LabelSpacing',72)

% Copyright 2015 The MathWorks, Inc.