Help! Trouble understanding differential equation.
Mostra commenti meno recenti
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 Commenti
Star Strider
il 24 Ott 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
il 24 Ott 2019
Hidde Kemperink
il 24 Ott 2019
Modificato: Hidde Kemperink
il 24 Ott 2019
John D'Errico
il 24 Ott 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
il 24 Ott 2019
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Programming in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
