Ode solver include specific time point

25 visualizaciones (últimos 30 días)
babita verma
babita verma el 28 de Abr. de 2018
Comentada: NIdhi Parmar el 3 de En. de 2022
I am solving a system of 11 dimension using ode15s since the model is stiff. I want to solve it using solver's default time step but need to ensure a specific time point is included while solving. Eg. if I am solving in the time range of [0 900] how do I make sure the time point of 700 is definitely included by the solver since for further analysis of this model I need to know the solution at time point 700. I had earlier solved using a user-defined small time step such that 700 is an included time point for the solver. But with this approach the relevant variable matfile that i save becomes huge. So, I am looking for ways to use default step size that would help me reduce the file size.
Any help is appreciated, Thanks!
  1 comentario
NIdhi Parmar
NIdhi Parmar el 3 de En. de 2022
Will this also work while solving simulatenous odes??

Iniciar sesión para comentar.

Respuesta aceptada

Star Strider
Star Strider el 28 de Abr. de 2018
I would use the deval (link) function to evaluate your solved ODE at a specific value of the independent variable.
  2 comentarios
babita verma
babita verma el 28 de Abr. de 2018
Thanks, that helps!
Star Strider
Star Strider el 28 de Abr. de 2018
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by