Results 1 to 2 of 2

Math Help - MATLAB and using the script for RK4 method

  1. #1
    Newbie
    Joined
    Mar 2009
    Posts
    5

    MATLAB and using the script for RK4 method

    Hi,

    I have a script for Runge-Kutta 4th order method, but i'm not sure how to use it.

    Matlab Source Code Examples

    scroll to the middle where it says initial value ODE solutions and click on rk4ode2.m

    So once I have that, how do i adapt it to fit my specific second order ode? I need to plot some graphs - y v. x, y' v. x, etc.

    thanks!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by gsds View Post
    Hi,

    I have a script for Runge-Kutta 4th order method, but i'm not sure how to use it.

    Matlab Source Code Examples

    scroll to the middle where it says initial value ODE solutions and click on rk4ode2.m

    So once I have that, how do i adapt it to fit my specific second order ode? I need to plot some graphs - y v. x, y' v. x, etc.

    thanks!
    Read the comments, get a right hand side example function as suggested.

    If necessary modify the given rhs function.

    CB
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. matlab Script for Finite Difference method
    Posted in the Math Software Forum
    Replies: 1
    Last Post: September 1st 2011, 11:24 PM
  2. Trying to script the General Beta 2 CDF in MATLAB
    Posted in the Math Software Forum
    Replies: 2
    Last Post: July 18th 2011, 12:55 PM
  3. is there a way to kill a script in matlab?
    Posted in the Math Software Forum
    Replies: 3
    Last Post: August 6th 2010, 05:21 AM
  4. Help with Matlab Script
    Posted in the Math Software Forum
    Replies: 1
    Last Post: April 25th 2010, 09:25 PM
  5. Matlab help can't write script
    Posted in the Math Software Forum
    Replies: 2
    Last Post: January 28th 2010, 06:00 AM

Search Tags


/mathhelpforum @mathhelpforum