Solving a non-standard ODE
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I'm trying to solve an ODE like this: xdot = r(t)-x, where r(t) is a pre-calculated signal array of size 100. Let x(0) = 0. How do I set up the ODE? Thanks a lot.
0 comentarios
Respuestas (1)
Nicolas Schmit
el 4 de Dic. de 2017
Create a interpolation of r(t), for example using interp1(), then use the interpolation routine in an ODE solver.
Ver también
Categorías
Más información sobre Ordinary Differential Equations 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!