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


Updated 2 Aug 2022

View License

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 (2022). Derivative of anonymous functions (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!