Inverse (integrated) gradient

Vectorized & fully sparse 1-d, 2-d, & 3-d integrated gradients

現在この提出コンテンツをフォロー中です。

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.

引用

John D'Errico (2026). Inverse (integrated) gradient (https://jp.mathworks.com/matlabcentral/fileexchange/9734-inverse-integrated-gradient), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを得たファイル: Inverse Gradient

ヒントを与えたファイル: PIVMat 4.22

カテゴリ

Help Center および MATLAB AnswersNumerical Integration and Differential Equations についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.1.0.0

Fixed bug for complex inputs

1.0.0.0

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