nanderivative.m v2.1 (Jul 2009)

N-order derivative of vector data by interpolating nearby points, ignoring NaNs.

Vous suivez désormais cette soumission

This program estimates the N-order (1rst derivative by default) derivative of a vector data Y (or the columns of a matrix) by interpolating, using INTERP1, two nearby points at each argument point X and then calculating their slope. It ignores NaNs elements.

>> dYdX = nanderivative(Y,X);

The N-order, the proximity of the interpolating points and the interpolation method (default 'spline') are optional input arguments.

Any comment will be very appreciated. (check the screenshot for an example)

Citation pour cette source

Carlos Adrian Vargas Aguilera (2026). nanderivative.m v2.1 (Jul 2009) (https://fr.mathworks.com/matlabcentral/fileexchange/21187-nanderivative-m-v2-1-jul-2009), MATLAB Central File Exchange. Extrait(e) le .

Remerciements

A inspiré : der.m v1.0 (Nov, 2009)

Catégories

En savoir plus sur Interpolation dans Help Center et MATLAB Answers

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.4.0.0

v2.1 Fixed small bug with INTERP1.

1.3.0.0

Rewritten code. Mayor changes with inputs and link axes. Fixed bugs with floating point error, monotonically increasing/decreasing X and if N is not 1 do not outputs all other derivatives anymore.

1.0.0.0