Products & Services Industries Academia Support User Community Company

Learn more about Symbolic Math Toolbox   

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

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS