Live Script showing an example of a function H in 2D space (x and y) evaluated as a surface plot in 3D. The gradient of H is a vector field with arrows pointing to and away from local maxima and minima, respectively, and magnitudes (relative arrow length) corresponding to the change in H with respect to change in x and y (partial derivatives).
引用格式
Roche de Guzman (2024). Gradient of scalar in 2D (https://www.mathworks.com/matlabcentral/fileexchange/108199-gradient-of-scalar-in-2d), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2022a
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |