how I can replace diff(x(t), t) with xdot ?
Ältere Kommentare anzeigen
>> syms t;
>> x=sym('x(t)');
>> f=sin(x);
>> diff(f,t)
ans =
cos(x(t))*diff(x(t), t)
1 Kommentar
Ahmed Eltayeb
am 29 Sep. 2012
Antworten (1)
Oleg Komarov
am 29 Sep. 2012
syms t xdot;
x = sym('x(t)');
f = sin(x);
df = diff(f,t);
subs(df,'diff(x(t), t)',xdot)
Kategorien
Mehr zu Calculus finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!