Solve symbolic equation with derivatives

조회 수: 10 (최근 30일)
Steradiant
Steradiant 2020년 6월 4일
답변: Steradiant 2020년 6월 10일
I want to solve an equation with the symbolic math toolbox. This equation also contains derivatives. E.g.:
eqn1 = 0 == x + y + diff(f(t),t)
sol1 = solve(eqn1, diff(f(t),t));
But I always get an empty structure as solution. Is there any way to do this or do I have to convert the diff(f(t),t) into another symbolic variable and convert it back to the derivative after I solved the equation?

채택된 답변

Steradiant
Steradiant 2020년 6월 10일
isolate(eqn,expr)
is the function I was looking for.

추가 답변 (1개)

madhan ravi
madhan ravi 2020년 6월 4일
dsolve(...) is the one to be used for odes.
  댓글 수: 4
Steradiant
Steradiant 2020년 6월 4일
Yeah, this is the workaround I was thinkin of but I'd have prefered a built in way rather than defining loads of symbolics.
madhan ravi
madhan ravi 2020년 6월 4일
Good luck.

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

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by