You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
% [dx, ddx] = diffCenterVar(t,x);
%
% Computes first and second derivatives of x(t)
% --> Second-order accurate
% --> Works for non-uniform grid
%
% INPUTS:
% t = [1,m] = time grid
% x = [n,m] = function values for each point on the grid
%
% OUTPUTS:
% dx = [n,m] = first derivative of x
% ddx = [n,m] = second derivative of x
%
% NOTES:
% This function works by locally fitting a quadratic curve between each
% set of three points. See Derive_Eqns.m for details.
%
Cite As
Matthew Kelly (2026). diffCenterVar (https://in.mathworks.com/matlabcentral/fileexchange/58287-diffcentervar), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: diffCenter
General Information
- Version 1.0.0.0 (2.66 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
