Variable Substitution Using Symbolic Functions
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Angel Quintanilla
el 17 de Jun. de 2020
Comentada: madhan ravi
el 17 de Jun. de 2020
syms A(t) B(t) C(t) t
syms X Y Z
D=A+B+C
D(t) =
Ds=subs(D,[A,B,C],[X,Y,Z])
Ds(t) =
I'm trying to substitute a time function for dummy variables that aren't interpreted as functions of time. Here I would assume X,Y,Z would not be functions of t since X,Y,Z aren't declared as such.
My goal is to treat both x(->a) and dx/dt(->b) as two separete variables that I can differentiate to get dx/dt and dx^2/dt^2(->c)
3 comentarios
madhan ravi
el 17 de Jun. de 2020
See my answer below ;) then if you don’t want the equation to be a function of time.
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!