Inverse Gradient

版本 1.0.0.0 (1.1 KB) 作者: Patrick Lu
The inverse function of gradient().
2.7K 次下载
更新时间 2005/6/27

无许可证

INVGRADIENT Basically the opposite of gradient(), aka Inverse Gradient.

F_bar = INVGRADIENT(dFx,dFy) reverses GRADIENT(F), where unit spacing is assumed.

F_bar = INVGRADIENT(dFx,dFy,H), where H is scalar, uses H as the spacing between points.

F_bar = INVGRADIENT(dFx,dFy,Hx,Hy) is basically the same, except that both x- and y-spacings are specified. Obviously, the DC offset of the integrated function is arbitrary. Also,

INVGRADIENT is limited to 2-dimensions at the moment, ie no 3-dimensional matrices, or vectors. If dFx and dFy aren't self-consistent then no exact solution can be integrated. In this case% the optimal solution, in the least squares sense, will be found. So if you do F_bar = INVGRADIENT(dFx,dFy), F_bar will be found such that doing [dFx_ dFy_] = GRADIENT(F_bar) will give you dFx_ and dFy_ that are as close as possible to the original dFx and dFy.

Patrick Lu
April 5, 2005
If this doesn't work right, email patlu@nospam.stanford.edu, w/o the nospam.

引用格式

Patrick Lu (2024). Inverse Gradient (https://www.mathworks.com/matlabcentral/fileexchange/7906-inverse-gradient), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Biological and Health Sciences 的更多信息
致谢

启发作品: Inverse (integrated) gradient

社区

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0