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

조회 수: 6 (최근 30일)
Ahmed Eltayeb
Ahmed Eltayeb 2012년 9월 29일
>> 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일
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