Inverse (integrated) gradient

版本 1.1.0.0 (12.4 KB) 作者: John D'Errico
Vectorized & fully sparse 1-d, 2-d, & 3-d integrated gradients
5.8K 次下载
更新时间 2013/1/2

查看许可证

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 (2024). Inverse (integrated) gradient (https://www.mathworks.com/matlabcentral/fileexchange/9734-inverse-integrated-gradient), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14SP1
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Numerical Integration and Differential Equations 的更多信息
致谢

参考作品: Inverse Gradient

启发作品: PIVMat 4.20

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
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.