gradient
Gradient vector of symbolic scalar field
Description
returns the gradient vector of symbolic scalar field
g
= gradient(f
,v
)f
with respect to vector v
in Cartesian
coordinates.
returns the
gradient vector of the scalar field g
= gradient(f
)f
with respect to a default vector
constructed from the symbolic variables in f
.
Examples
Input Arguments
Limitations
The
gradient
function does not support tensor derivatives. If the gradient is a tensor field or a matrix rather than a vector, then thegradient
function returns an error.Symbolic Math Toolbox™ currently does not support the
dot
orcross
functions for symbolic matrix variables and functions of typesymmatrix
andsymfunmatrix
. If vector calculus identities involve dot or cross products, then the toolbox displays those identities in terms of other supported functions instead. To see a list of all the functions that support symbolic matrix variables and functions, use the commandsmethods symmatrix
andmethods symfunmatrix
.
More About
Version History
Introduced in R2011bSee Also
curl
| divergence
| diff
| hessian
| jacobian
| laplacian
| potential
| quiver
| vectorPotential