help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ode45 for simultaneous equations?


From: Eric S Fraga
Subject: Re: ode45 for simultaneous equations?
Date: Fri, 14 Dec 2007 09:26:09 +0000
User-agent: Wanderlust/2.15.5 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/22.1 (x86_64-pc-linux-gnu) MULE/5.0 (SAKAKI)

> I'm trying to utilize ode45 to solve multiple simultaneous ODEs. I have no
> problems using ODE45 for a single ODE, but I can't seem to get it to
> function properly for multiple ODEs.
> 
> To make sure I'm not screwing up the syntax, I copied the syntax from
> Mathsoft:
> http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/ode23.html
> Example 1 has three simultaneous equations.
> 
> Am I doing something stupid? Do others use ose45 for this purpose?
> 
> The error I get back says:
> error: operator \: nonconformant arguments (op1 is 2x2, op2 is 1x2)

Without seeing your code, it is difficult to be sure but my guess
would be that you have assumed that the dependent variables and the
right hand side of your ODEs are row vectors whereas ode45 assumes
they are column vectors?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]