Derivative of anonymous functions
Version 2.0.0 (5.22 KB) by
Emanuele Bianco
This function takes as input a function F (either symbolic or anonymous) and computes the Jacobian of F
Given as input a column vector of symbolic or anonymous functions (1x1, 2x1, ...), "Jac" will give as output the Jacobian of the vector inserted.
The output format will be the same as the input format (anonymous => anonymous / sym => sym).
If the input is a vector of anonymous functions, the Jacobian will be a vector/matrix of anonymous vectorized functions (the ' . ' is inserted before the following operations ' / ' ' * ' ' ^ ').
This function uses the symbolic Math Toolbox.
Examples and more informations are inserted in the comment section of "Jac";
type in the command window:
>> help Jac
Cite As
Emanuele Bianco (2024). Derivative of anonymous functions (https://www.mathworks.com/matlabcentral/fileexchange/112510-derivative-of-anonymous-functions), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2021b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.