derivative in syms
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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?
0 comentarios
Respuesta aceptada
Walter Roberson
el 12 de Oct. de 2011
You tell MATLAB that u is a function of t.
a = subs(a,'u','u(t)');
diff(a,'t')
0 comentarios
Más respuestas (1)
William
el 12 de Oct. de 2011
It looks like you're tying a differential equation
try this link
2 comentarios
Bjorn Gustavsson
el 12 de Oct. de 2011
Look at 'dsolve' then, that should be what you want to use for solving DE analytically.
Ver también
Categorías
Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!