jacobi

a func to transform an anonymous function f to its jacobian matrix.
51 Downloads
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 (2026). jacobi (https://in.mathworks.com/matlabcentral/fileexchange/90376-jacobi), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0