Solving differential equation containing independent function
显示 更早的评论
Hi, I am trying to solve a differential equation of the form:
y_dot = f-5y
where f is a function stored as an array with values corresponding to each instant within the integration time interval. From what I know, this is not an ode and can't be solved using the built in ode solvers. Is there a way to solve this differential equation in MATLAB. Thank you!
采纳的回答
更多回答(1 个)
KSSV
2017-7-25
1 个投票
Then write your code for Runge-Kutta method of solving ODE. You may have a look here for this:
类别
在 帮助中心 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!