Inverse (integrated) gradient

Vectorized & fully sparse 1-d, 2-d, & 3-d integrated gradients
5,8K téléchargements
Mise à jour 2 jan. 2013

Afficher la licence

The inverse of the gradient function. I've provided versions that work on 1-d vectors, or 2-d or 3-d arrays. In the 1-d case I offer 5 different methods, from cumtrapz, and an integrated cubic spline, plus several finite difference methods.

In higher dimensions, only a finite difference/linear algebra solution is provided, but it is fully vectorized and fully sparse in its approach. In 2-d and 3-d, if the gradients are inconsistent, then a least squares solution is generated.

(I'll enhance the 2-d and 3d tools if there is any interest. Currently they are set to be 2nd order methods on uniform grids.)

Please notify me of any bugs.

Citation pour cette source

John D'Errico (2024). Inverse (integrated) gradient (, MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R14SP1
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
En savoir plus sur Numerical Integration and Differential Equations dans Help Center et MATLAB Answers

Inspiré par : Inverse Gradient

A inspiré : PIVMat 4.20

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version

Fixed bug for complex inputs

Upgrades to the 1-d cumulative integration code, for both accuracy and speed in the finite difference methods.