Gradient of scalar in 3D

Comparing the scatterplot of the scalar function to the quiver plot of its gradient vector function
41 Downloads
Updated Sat, 19 Mar 2022 22:23:39 +0000

View License

Live Script showing an example of a function H in 3D space (x, y, and z) evaluated as a scatterplot. 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, y, and z (partial derivatives).

Cite As

Roche de Guzman (2024). Gradient of scalar in 3D (https://www.mathworks.com/matlabcentral/fileexchange/108274-gradient-of-scalar-in-3d), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0