%GRADIENT Approximate gradient.
%   [FX,FY] = GRADIENT(F)
%   [FX,FY] = GRADIENT(F,H)
%   [FX,FY] = GRADIENT(F,HX,HY)
%   [FX,FY,FZ] = GRADIENT(F,HX,HY,HZ)
%   [FX,FY,FZ,...] = GRADIENT(F,HX,HY,HZ,...)
%   
%   Example:
%    
%       gridCoords = gpuArray.colon(-2, 0.2, 2);
%       [x,y] = meshgrid(gridCoords);     % Create a coordinate grid
%       z = x .* exp(-x.^2 - y.^2);       % Evaluate function at each point
%       [px,py] = gradient(z, 0.2, 0.2);  % Gradients at each point
%       contour(z), hold on, quiver(px,py), hold off  % Show
%   
%   See also GRADIENT, GPUARRAY, GPUARRAY/DIFF, GPUARRAY/DEL2.
%   


%   Copyright 2013 The MathWorks, Inc.
