Symbolic toolbox differentiation by chain rule without expression defined

11 ビュー (過去 30 日間)
Jaewon Park
Jaewon Park 2023 年 12 月 3 日
コメント済み: Jaewon Park 2023 年 12 月 4 日
Hello,
let's say I have variables x and y that depend on time. .
I have a third variable z which is a function of x and y only. .
Here, I do not have any expression that explicitly defines z, but I just know that it is a function of only x and y.
Then, I want to come up with an expression for .
I am expecting to see something like
I thought the code below would do this:
syms x(t) y(t) z(x,y)
diff(z,t)
ans(x, y) = 
0
but it is just outputing zero.
Is there a workaround or proper way to do this ?
Thanks

採用された回答

VBBV
VBBV 2023 年 12 月 3 日
syms x(t) y(t) z(x,y) t
x = x(t);
y = y(t);
z = z(x,y)
z = 
C = diff(z,t)
C = 

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by