piecewise function in ODEs
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Does anybody have experience using piecewise fxn inside of ODE solvers, such as ode23?
Thanks!
1 comentario
Star Strider
el 17 de Abr. de 2019
The best way to integrate a piecewise function is to integrate the first region, stop the solver, use the last values of the integration as the new initial conditions, then integrate the second region, and continue until you have integrated the entire function.
The reason is that the function may not be differentiable across the abrupt changes between the regions, giving unreliable results.
Respuestas (0)
Ver también
Categorías
Más información sobre Numerical Integration and 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!