File Exchange

image thumbnail


version 1.0.0 (1.5 KB) by xiaomeng xu
a func to transform an anonymous function f to its jacobian matrix.


Updated 13 Apr 2021

View License

% jacobi a func to transform a function f to its jacobian matrix jacomat.
% jacobi works for only function_handle with the format @(x)...
% The input of f should be listed in a column vector separated by semicolon
% The output of jacobi is also an anonymous function.

% For example:
% >> f = @(x) [x(1)^2+x(2)^2; x(1)*x(2)];
% >> Df=jacobi(f)
% >> Df =
% function_handle with value:
% @(x)[2*x(1),2*x(2);x(2),x(1);]

Cite As

xiaomeng xu (2021). jacobi (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Hui Zhang

MATLAB Release Compatibility
Created with R2021a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!