The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: ODE45 parameters error
Replies: 7   Last Post: Jun 19, 2013 2:51 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 2
Registered: 1/25/05
Re: ODE45 parameters error
Posted: Jan 16, 2005 9:50 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

[In addition to my previous message]

I found an old doc for matlab 5.* stating that when you pass the name
of your function ('myodefunction') to the ode solvers instead of their
handle (@myodefunction), the third parameter of your function had to
be some kind of flag. I.e. your function had to be defined AS follows:

function y = myodefunction(t,y,flag,P1,P2,...)

The doc also stated the flag wouldn't be used after version 6, but it
seems like it still is (at least in some cases).



On Thu, 16 Dec 2004 16:18:31 -0500, Serdar wrote:
>I have some problems with additional parameters. Code is something
>like that:
>When i run this script file i have seen the following error.
>??? Error using ==> invert_pen
>Too many input arguments.
>Error in ==> funfun\private\odearguments at 110
>f0 = feval(ode,t0,y0,args{:}); % ODE15I sets args{1} to yp0.
>Error in ==> ode45 at 173
>[neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, ...
>Error in ==> invert_pen_ode at 39
>how can i use these parameters in ode45.
>Please help...

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.