solving system of ODE's
Show older comments
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 Comments
Sean de Wolski
on 6 May 2011
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
on 6 May 2011
Jarrod Rivituso
on 6 May 2011
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
on 6 May 2011
Answers (1)
Matt Tearle
on 6 May 2011
0 votes
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.
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!