MATLAB Answers

Derivate a function with two variable dependent of time

2 ビュー (過去 30 日間)
Mechanical0970
Mechanical0970 2020 年 5 月 12 日
編集済み: Mechanical0970 2020 年 5 月 12 日
hello,
I have the funtion f( r(t) , theta(t) )= r^2 + 0.2cos(theta) -0.03 =0 .
My question how can I define a function to derive f respect to t .
I appreciate any help.

回答 (1 件)

Birdman
Birdman 2020 年 5 月 12 日
The following might help:
syms r(t) theta(t) f(r,theta)
f=r^2+0.2*cos(theta)-0.03
To take partial derivative, use functionalDerivative:
functionalDerivative(f,r)
or
functionalDerivative(f,theta)

Community Treasure Hunt

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

Start Hunting!

Translated by