필터 지우기
필터 지우기

derivative in syms

조회 수: 1 (최근 30일)
Franco
Franco 2011년 10월 12일
If I am using syms, and i have the following
a = b * u
then da/dt = b * du/dt.
How do I get matlab to do this rather than just assume u is not a function of t and assign a value of 1?

채택된 답변

Walter Roberson
Walter Roberson 2011년 10월 12일
You tell MATLAB that u is a function of t.
a = subs(a,'u','u(t)');
diff(a,'t')

추가 답변 (1개)

William
William 2011년 10월 12일
It looks like you're tying a differential equation
try this link
  댓글 수: 2
Franco
Franco 2011년 10월 12일
I am, but I need to solve it analytically, not numerically
Bjorn Gustavsson
Bjorn Gustavsson 2011년 10월 12일
Look at 'dsolve' then, that should be what you want to use for solving DE analytically.

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

카테고리

Help CenterFile Exchange에서 Conversion Between Symbolic and Numeric에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by