central_diff2(y,deltat,d,a)
central_diff2(y,deltat,d,a) returns the dth numeric derivative of y to specified accuracy order deltat^a for evenly sampled data (deltat is constant).
Example:
The third derivative of a time series f sampled at 0.01 second increments to accuracy order deltat^4:
third_derivative_of_f=central_diff2(f,0.01,3,4);
Interior points are calculated using the central difference method. First and last points are calculated using forward and backward difference methods. Intermediate point coefficients are calculated using a Vandermode system. The specified accuracy is maintained for all points.
Source for intermediate point algorithm: http://www.siam.org/books/ot98/sample/OT98Chapter1.pdf
Zitieren als
Benjamin Strom (2025). central_diff2(y,deltat,d,a) (https://www.mathworks.com/matlabcentral/fileexchange/48520-central_diff2-y-deltat-d-a), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Mathematics > Interpolation >
Tags
Quellenangaben
Inspiriert von: central_diff.m, N-Point Central Differencing
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.1.0.0 | description edits |
||
1.0.0.0 |