how I can replace diff(x(t), t) with xdot ?
Show older comments
>> syms t;
>> x=sym('x(t)');
>> f=sin(x);
>> diff(f,t)
ans =
cos(x(t))*diff(x(t), t)
1 Comment
Ahmed Eltayeb
on 29 Sep 2012
Answers (1)
Oleg Komarov
on 29 Sep 2012
syms t xdot;
x = sym('x(t)');
f = sin(x);
df = diff(f,t);
subs(df,'diff(x(t), t)',xdot)
Categories
Find more on Calculus in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!