Forward difference gradient approximator

Approximates the gradient of a function of n variables using a forward difference approximation.

You are now following this Submission

This function returns the gradient vector of the function fcn
using a forward difference approximation. Inputs are the function @fcn,
x=[x1,..xn] and the purturbation size r.

Cite As

Sean Wu (2026). Forward difference gradient approximator (https://in.mathworks.com/matlabcentral/fileexchange/50140-forward-difference-gradient-approximator), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0