How to solve some "tricky" differential equations
显示 更早的评论
I'm a Mathematica user who is starting to learn MATLAB. My professor told me that if I want to do something serious, nothing is better than MATLAB. So, I have several DEs problems to solve.
First problem:

In Mathematica, I use this code for the solution of above equation

Second problem:

The Mathematica code

Third problem:

The code

I have consulted to MATLAB documentations how to solve above differential equations but I couldn't find the answer. Any help would be appreciated. Thank you.
回答(1 个)
Torsten
2015-6-22
It should be possible to solve the first problem with MATLAB's "dsolve". Otherwise, rewrite you 3rd order ODE as a system of three first-order ODEs
y1'=y2
y2'=y3
y3'=y1+1
and use ODE45 to solve.
For the second and third problem, use DDE23.
Best wishes
Torsten.
2 个评论
Deco Sukan
2015-6-22
编辑:Deco Sukan
2015-6-22
Torsten
2015-6-22
Using dsolve, you should have no trouble to insert boundary conditions at three different points. Using a numerical solver, try BVP4C and look at the example "threebvp".
For the second and third problem: DDE23 deals with non-identical (constant) delays.
Invest a little time - nothing is for free.
Best wishes
Torsten.
类别
在 帮助中心 和 File Exchange 中查找有关 Programming 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!