diffCenterVar
版本 1.0.0.0 (2.7 KB) 作者:
Matthew Kelly
1st and 2nd derivatives, non-uniform time grid, second-order method
% [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.
%
引用格式
Matthew Kelly (2026). diffCenterVar (https://ww2.mathworks.cn/matlabcentral/fileexchange/58287-diffcentervar), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2012a
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Least Squares 的更多信息
标签
致谢
参考作品: diffCenter
| 版本 | 已发布 | 发行说明 | |
|---|---|---|---|
| 1.0.0.0 |
