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!