Documentation Center |
Jacobian matrix
jacobian(f,v)
jacobian(f,v) computes the Jacobian matrix
of the scalar or vector f with respect to v.
The (i, j)-th
entry of the result is
. If f is
a scalar, the Jacobian matrix of f is the gradient
of f. If v is a scalar, the
result equals to diff(f, v).
Compute the Jacobian matrix for each of these 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)
R = [ y*z, x*z, x*y] [ 0, 1, 0] [ 1, 0, 1] b = [ 1, 0, 1]
curl | diff | divergence | gradient | hessian | laplacian | potential | vectorPotential