help-octave
[Top][All Lists]
Advanced

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

Re: Octave ODE solver: inconsistent size for state and derivative vector


From: Przemek Klosowski
Subject: Re: Octave ODE solver: inconsistent size for state and derivative vectors
Date: Mon, 16 Apr 2018 17:14:37 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

On 04/13/2018 11:48 PM, Fabcap77 wrote:
error: ODEfun: A(I): index out of bounds; value 2 out of bound 1
error: called from:
error:   ODEfun at line 14, column 4
error: evaluating argument list element number 1
error:  $path/lines01_diff_eq.m at line 42, column 1

Well, you call disp([y0 ODEfun(tspan(1),y0)]);

and tspan(1) is a number, while ODEfun wants an array. I didn't try to figure out what is the intent of that statement, but you have to give it a 9-element array as the first argument.




reply via email to

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