octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #59709] ode event handler function is incorrec


From: Hg200
Subject: [Octave-bug-tracker] [bug #59709] ode event handler function is incorrect when direction variable is [-1, -1]
Date: Thu, 17 Dec 2020 14:42:51 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0

Follow-up Comment #2, bug #59709 (project octave):

R2018 returns an error:

++
Error using horzcat
Dimensions of arrays being concatenated are not consistent.

Error in ode45 (line 411)
        ieout = [ieout, ie];

Error in result (line 7)
sol5 = ode45 (@myode, [0, maxT], x0, opt5);
--

In order to verify that everything is fine if have changed test_event5.m
following line:

++
val = [x-4, x-3, x-2];
--

Then code in comment #1 executes with success.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59709>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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