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: The entries in tspan must strictly increase or decrease
Replies: 1   Last Post: Aug 23, 2013 2:39 AM

Advanced Search

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

Posts: 1,717
Registered: 11/8/10
Re: The entries in tspan must strictly increase or decrease
Posted: Aug 23, 2013 2:39 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Sanaa" wrote in message <kv5ptm$ovj$>...
> Hi all,
> I have 4 m files to create a plot and I define tspan = [0:tstep:tend];
> Matlab gives me the error
> ??? Error using ==> funfun\private\odearguments
> The entries in tspan must strictly increase or decrease.
> Error in ==> ode45 at 173
> [neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, ...
> Error in ==> run at 17
> [t x] = ode45(@FODuffing,parameters,orders,ttrans,Y0,option,mu);
> Error in ==> bifurcation at 20
> [t,x] = run(parameters,orders,Y0,trans,tend,tstep,mu);
> strange because I have defined tspan = [0:tstep:tend]; so it's increasing.
> Any explanation please?
> Thanks a lot in advance.

The call
[t x] = ode45(@FODuffing,parameters,orders,ttrans,Y0,option,mu);
to ODE45 is wrong.
Take a look at the documentation for the correct argument list.

Best wishes

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.