jacobian - Compute Jacobian matrix
Syntax
jacobian(f, v)
Description
jacobian(f, v) computes the Jacobian of
the scalar or vector f with respect to v.
The (i, j)-th
entry of the result is
. If f is
scalar, the Jacobian of f is the gradient of f.
If v is a scalar, the result equals to diff(f,
v).
Examples
Compute the Jacobians of the following vectors:
syms x y z
f = [x*y*z; y; x + z];
v = [x, y, z];
R = jacobian(f, v)
b = jacobian(x + z, v)
The result is
R =
[ y*z, x*z, x*y]
[ 0, 1, 0]
[ 1, 0, 1]
b =
[ 1, 0, 1]
See Also
diff
 | iztrans (sym) | | jordan |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit