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

>> syms t;
>> x=sym('x(t)');
>> f=sin(x);
>> diff(f,t)
ans =
cos(x(t))*diff(x(t), t)

댓글 수: 1

Ahmed Eltayeb
Ahmed Eltayeb 2012년 9월 29일
sorry my question is: how I can replace diff(x(t), t) with xdot ? thanks

댓글을 달려면 로그인하십시오.

답변 (1개)

Oleg Komarov
Oleg Komarov 2012년 9월 29일

0 개 추천

syms t xdot;
x = sym('x(t)');
f = sin(x);
df = diff(f,t);
subs(df,'diff(x(t), t)',xdot)

카테고리

질문:

2012년 9월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by