File Exchange

image thumbnail

Numerical Differentiation (differentiate)

version 1.0.2 (305 KB) by Tamas Kis
Numerically evaluates the derivative of a univariate function over a domain or at a specified point (or set of points).


Updated 02 Apr 2021

From GitHub

View Version History

View license on GitHub

See or “DOCUMENTATION.pdf” for additional documentation and examples. Examples can also be found in “EXAMPLES.m”.

The “differentiate” function finds derivative of a univariate function f(x) over a domain or at a specified point (or set of points). f(x) itself can be supplied either as a function handle, or as two vectors (with one storing values of the independent variable and the other storing the corresponding function evaluations).

There is an existing MATLAB function called “differentiate” in the Curve Fitting Toolbox. That function can differentiate (including finding gradients of multivariate functions) cfit and sfit objects, which are fits to data. This function, on the other hand, differentiates univariate functions that are either input as vectors (similar to how vectors are used in trapz and cumtrapz) or as a function handle.

Cite As

Tamas Kis (2021). Numerical Differentiation (differentiate) (, GitHub. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2021a
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!