You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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).
Cite As
Roche de Guzman (2026). Gradient of scalar in 2D (https://www.mathworks.com/matlabcentral/fileexchange/108199-gradient-of-scalar-in-2d), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0 (85.9 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0 |
