solving system of ODE's
Mostrar comentarios más antiguos
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 comentarios
Sean de Wolski
el 6 de Mayo de 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
el 6 de Mayo de 2011
Jarrod Rivituso
el 6 de Mayo de 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
el 6 de Mayo de 2011
Respuestas (1)
Matt Tearle
el 6 de Mayo de 2011
0 votos
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.
Categorías
Más información sobre Ordinary Differential Equations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!