Help! Trouble understanding differential equation.
Show older comments
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 Comments
Star Strider
on 24 Oct 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
on 24 Oct 2019
Hidde Kemperink
on 24 Oct 2019
Edited: Hidde Kemperink
on 24 Oct 2019
John D'Errico
on 24 Oct 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
on 24 Oct 2019
Accepted Answer
More Answers (0)
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!