Filter löschen
Filter löschen

derivative in syms

1 Ansicht (letzte 30 Tage)
Franco
Franco am 12 Okt. 2011
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?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 12 Okt. 2011
You tell MATLAB that u is a function of t.
a = subs(a,'u','u(t)');
diff(a,'t')

Weitere Antworten (1)

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

Melden Sie sich an, um zu kommentieren.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by