Does Matlab have its own RK4 package?

Does Matlab have its own Runge Kutta package or must I write my own? I am looking for an algorithm for n equations.

Respuestas (1)

Star Strider
Star Strider el 16 de Oct. de 2015

0 votos

MATLAB has a powerful set of built-in ODE and related differential equation solvers (and partial differential equation solvers in the Partial Differential Equation Toolbox). See the documentation for ode45 and its friends for details. There might be others in the File Exchange.

4 comentarios

jake smith
jake smith el 16 de Oct. de 2015
I am a new user of Matlab, but how do you call those packages or toolbox?
Star Strider
Star Strider el 16 de Oct. de 2015
The ‘ode45’ in my original Answer is a hyperlink to the documentation for it. You should be able to access it and look through it. It has a relatively complete description of its use. If you have a particular ODE you want to integrate, post the code for your ODE function and I can help you code the integration.
jake smith
jake smith el 16 de Oct. de 2015
Editada: jake smith el 16 de Oct. de 2015
No I already went to the link, but do you mean there is a download page for the documentation (like what Mathematica/Maple does)? Because I don't see a download link.
I already have a code of my own, but I just wanted to compare it with what MatLab historically has and check some consistency.
It's a really basic RK4. I can make one up right now (this is in norm form for convenience).
y1' = y1+y2+y3
y2 = y1'
y2' = y1*y3+y_2
y3 = y2'
y3' = y2+ y1*y2^3
Let's say I add initial conditions.
(y1(0), y2(0), y3(0)) = (0,1,2)
Walter Roberson
Walter Roberson el 16 de Oct. de 2015
There is no download link for the documentation; that is the link to the documentation for ode45.

Iniciar sesión para comentar.

Etiquetas

Preguntada:

el 16 de Oct. de 2015

Comentada:

el 16 de Oct. de 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by