Help! Trouble understanding differential equation.
Mostrar comentarios más antiguos
Hi my name is Hidde and i am a first year IEM student,
I got an assignment where i have to solve a differential equation written in the form: f'(t) = A*(g(t) - f(t)) + B*(h(t) - f(t))
I have never seen a DE with multiple functions inside it. I have data for the g(t) where all the values for g(t) are given in the interval [1, 1440] (with steps of 1).
h(t) is discribed as: h'(t) = C*(f(t) - h(t)) + C*(g(t) - h(t)).
i have to use ode45 to solve this problem.
5 comentarios
Star Strider
el 24 de Oct. de 2019
See the documentation on Function Basics if you have not already encountered functions, and the documentation on Anonymous Functions. Then review the documentation on ode45 or whatever solver you believe is necessary. Code the problem you want to solve. If you have problems, post back here. We can help you get your code running.
Hidde Kemperink
el 24 de Oct. de 2019
Hidde Kemperink
el 24 de Oct. de 2019
Editada: Hidde Kemperink
el 24 de Oct. de 2019
John D'Errico
el 24 de Oct. de 2019
You have never seen a differential equation with multiple functions in it? Surely not true. For example, something as simple as this:
y' = x + x^2
or
y' = exp(x) + x
would fit that goal.
Hidde Kemperink
el 24 de Oct. de 2019
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Programming 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!
