How to solve ODE's in Matrix Form?
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I have a set of equations like this and am clueless on how to solve on MATLAB and hope someone can help. The intial conditions are P0(0) = 1; P1(0) = 0.
4 个评论
James Tursa
2019-2-26
Please post what you have tried and what problems you are having with your code and we can help.
回答(1 个)
Star Strider
2019-2-26
For a linear system such as yours, another option is the expm (link) function. It is the term in the solution for a linear system:
where = expm(A*t).
This requires a loop for the inputs and for values of ‘t’, however that is more of an inconvenience than a problem.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!