%% Increment z-Axis Tick Values by 2
% Display tick marks along the z-axis at increments of 2, starting from -10 and ending at 10.

[x,y,z] = peaks;
surf(peaks)
zticks([-10:2:10])

% Copyright 2012 The MathWorks, Inc.