solving system of ODE's
古いコメントを表示
please i have this differential equation and i need it to be solved by runge-kutta "ODE 45" and i'm not good in matlab program the equation is y''-t+y=0 ,initial conditions: y(0)=2 ,y'(0)=0 and the step size "h" =0.1 find the y(5)??? the professor told us that we must use matlab and make something called M file but i don't know any thing about this can you help ? i need the answer as fast as possible
4 件のコメント
Sean de Wolski
2011 年 5 月 6 日
I would ask your professor to teach you and assist you; it's their job not ours. On that note, ask a question here if it's specific, MATLAB related, and you've shown us what you've tried.
JAMAL ALBASHA
2011 年 5 月 6 日
Jarrod Rivituso
2011 年 5 月 6 日
Perhaps this question would be better worded as "where can I find a good tutorial on using the ODE solvers in MATLAB?"
Jamal if you reword it that way you might get more responses.
I'm actually not sure of what the answer is, though I'll say that the ode solver doc does have an example:
http://www.mathworks.com/help/techdoc/ref/ode23.html
JAMAL ALBASHA
2011 年 5 月 6 日
回答 (1 件)
Matt Tearle
2011 年 5 月 6 日
0 投票
Although I'd generally agree with Jarrod about using ode45 or similar, from the wording of the question, it sounds like your prof wants you to write an RK4 solver by hand. All the MATLAB solvers are variable stepsize methods, but your assignment specifies a fixed h = 0.1. In that case, you'll need to learn the basics of programming in MATLAB. Here's a useful resource for that.
カテゴリ
ヘルプ センター および File Exchange で Ordinary Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!