image thumbnail

Central Difference Gradient Approximator

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


Updated 21 Mar 2015

View License

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

Cite As

Sean Wu (2021). Central 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!