%% Gradient of Vector
% Calculate the gradient of a monotonically increasing vector.

x = 1:10

%

fx = gradient(x)

% Copyright 2012 The MathWorks, Inc.