diffCenterVar

1st and 2nd derivatives, non-uniform time grid, second-order method

Vous suivez désormais cette soumission

% [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.
%

Citation pour cette source

Matthew Kelly (2026). diffCenterVar (https://fr.mathworks.com/matlabcentral/fileexchange/58287-diffcentervar), MATLAB Central File Exchange. Extrait(e) le .

Remerciements

Inspiré par : diffCenter

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0.0