how derive a solution of ode45
Mostrar comentarios más antiguos
Hi i have a ode45 solution with this script
syms y(t)
[V] = odeToVectorField(diff(y, 2) + 2*diff(y) - sin(y) == 0)
M = matlabFunction(V,'vars', {'t','Y'})
sol = ode45(M,[0 20],[1 0])
fplot(@(x)deval(sol,x,1),[0, 20])
dsol = diff(sol)
Now i want to derive the solution to obtain the velocity.
How i can do ?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Ordinary Differential Equations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
