image thumbnail

Forward difference gradient approximator

version (471 Bytes) by Sean Wu
Approximates the gradient of a function of n variables using a forward difference approximation.


Updated 21 Mar 2015

View License

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 (2021). Forward difference gradient approximator (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!