Numerical Differentiation of Data (derivative)
Updated 27 Aug 2021
Numerical differentiation of data (i.e. arrays).
dy = derivative(x,y)
dy = derivative(x,y,x_star)
- This function is the equivalent of
cumtrapzfor numerical differentiation and is especially useful for estimating derivatives where the underlying function is unknown (i.e. we have some data set vs. that describes a function , but this underlying function is unknown and so we use the data set to approximate its derivative).
- If we do know the underlying function , then we can still use
derivativeto estimate its derivative. We can do this by defining a vector of points
xand then populating a vector
ywith evaluations of at every point in
x. However, in this case (where the underlying function is known),
derivestare better functions to use.
- See "EXAMPLES.mlx" or the "Examples" tab on the File Exchange page for examples.
- See "Basic_Numerical_Calculus.pdf" (also included with download) for the technical documentation.
Tamas Kis (2022). Numerical Differentiation of Data (derivative) (https://github.com/tamaskis/derivative-MATLAB/releases/tag/v3.0.3), GitHub. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!