how I can replace diff(x(t), t) with xdot ?

10 次查看(过去 30 天)
>> syms t;
>> x=sym('x(t)');
>> f=sin(x);
>> diff(f,t)
ans =
cos(x(t))*diff(x(t), t)

回答(1 个)

Oleg Komarov
Oleg Komarov 2012-9-29
syms t xdot;
x = sym('x(t)');
f = sin(x);
df = diff(f,t);
subs(df,'diff(x(t), t)',xdot)

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by