Results 1 to 4 of 4

Math Help - differential equations

  1. #1
    Newbie
    Joined
    Apr 2010
    Posts
    23

    differential equations

    hello everyone. I need to define a differential equation in matlab but i cant figure out how. Can someone please help me.
    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 AUCC View Post
    hello everyone. I need to define a differential equation in matlab but i cant figure out how. Can someone please help me.
    Yes, first convert the ODE into a first order system, second write a function for x' the input to which is t and x. Finally use ode45 (read the help text).

    CB
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Apr 2010
    Posts
    23
    Hey in the ode45 method how can i get the value of y when x is not a integer

    for example

    ode45(@func, [0:0.05], 0);

    Does not work

    Please help
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by AUCC View Post
    Hey in the ode45 method how can i get the value of y when x is not a integer

    for example

    ode45(@func, [0:0.05], 0);

    Does not work

    Please help
    try: odx45(@func,[0:0.001:0.05],0)

    CB
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. 'Differential' in differential equations
    Posted in the Differential Equations Forum
    Replies: 0
    Last Post: October 5th 2010, 10:20 AM
  2. Replies: 2
    Last Post: May 18th 2009, 03:49 AM
  3. Differential Equations
    Posted in the Calculus Forum
    Replies: 4
    Last Post: February 10th 2008, 02:57 AM
  4. Replies: 5
    Last Post: July 16th 2007, 04:55 AM
  5. Replies: 3
    Last Post: July 9th 2007, 05:30 PM

Search Tags


/mathhelpforum @mathhelpforum