Vector derivetive symbolic how to calculate?

12 views (last 30 days)
terance
terance on 7 Dec 2011
Hello!
I have a function y=f(b1,...,b6) with six variables and I need to write function, which returns the vector derivative of y.
dy/db=[dy/db1,...,dy/db6]
How can I write it?
Thank you for ypur answers!

Answers (1)

Andrei Bobrov
Andrei Bobrov on 7 Dec 2011
can use Symbolic Math Toolbox, please read about function jacobian,
e.g.
syms x y z
f = x*y*z;
v = [x, y, z];
R = jacobian(f, v)

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!