Symbolic Math Toolbox | Search  Help Desk | |
jacobian | Examples | See Also |
R = jacobian(w,v)
jacobian(w,v)
computes the Jacobian of w
with respect to v
. w
is a symbolic scalar expression or a symbolic column vector. v
is a symbolic row vector. The (i,j)
-th entry of the result is w(i)
/v(j)
.
The statements
w = [x*y*z; y; x+z]; v = [x,y,z]; R = jacobian(w,v) b = jacobian(x+z, v)return
R = [y*z, x*z, x*y] [ 0, 1, 0] [ 1, 0, 1] b = [1, 0, 1]
diff