Solve symbolic equation with derivatives

2 Ansichten (letzte 30 Tage)
Steradiant
Steradiant am 4 Jun. 2020
Beantwortet: Steradiant am 10 Jun. 2020
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?

Akzeptierte Antwort

Steradiant
Steradiant am 10 Jun. 2020
isolate(eqn,expr)
is the function I was looking for.

Weitere Antworten (1)

madhan ravi
madhan ravi am 4 Jun. 2020
dsolve(...) is the one to be used for odes.
  4 Kommentare
Steradiant
Steradiant am 4 Jun. 2020
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 am 4 Jun. 2020
Good luck.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by