Symbolic math toolbox- Jacobian of a function with respect to an other function?

I would like to find the jacobian of:
f=[f(x1(t)...x6(t)); ... ;f6(x1(t)...x6(t))]
with respect to:
x(t)=[x1(t);...;x6(t)]
which function could I use?
Is it possible to differenciate a symbolic function with respect to an other symbolic function?

 채택된 답변

Walter Roberson
Walter Roberson 2013년 6월 25일
No, it is not possible to differentiate with respect to a function. In a previous post several months ago I showed how that leads to a contradiction.

댓글 수: 3

Thanks!!
I think I found it:
I got it, unlike variables, functions are not assumed to be independent and that can lead to contradictions.
It seems to be possible since Release of R2021b.
syms x1(t) x2(t)
syms f1(x1,x2) f2(x1,x2)
f = [f1 f2];
jacobian(f,[x1 x2])
works as intended but after f1 and f2 are defined x1 and x2 are no symfun-objects anymore. Bug?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

doc jacobian
Alan Weiss
MATLAB mathematical toolbox documentation

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

질문:

2013년 6월 24일

댓글:

2021년 11월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by