Can ode45 solve a ODE with space dependent parameters?
Mostrar comentarios más antiguos
Hello,
I read ode45() can solve functions with time dependent parameters like this below by interpolating f and g during each time step.
y'(t)+f(t)y(t)=g(t)
However, can ode45 (or other solver) solve a system of odes like this below in which [A], [B] and [C] are matrices with some terms dependent of y and y=y(t)?
{dy/dt} = [A]{y^4}+[B]{y}+{C}
Ai=Ai(y)
Bi=Bi(y)
Ci=Ci(y)
Well, since this equation appears in a problem I solve using Simscape (Backward Euler method as default), I suppose I could find a solver to solve it inside Matlab codes without using Simscape.
2 comentarios
Jan
el 29 de En. de 2019
The notation is not clear to me: "{dy/dt} = [A]{y^4}+[B]{y}+{C}"
Marlon Saveri Silva
el 29 de En. de 2019
Editada: Marlon Saveri Silva
el 29 de En. de 2019
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!