[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #36686] Saving and loading function handles th
From: |
Hartmut |
Subject: |
[Octave-bug-tracker] [bug #36686] Saving and loading function handles that point to subfunctions is not working correctly |
Date: |
Sun, 20 Nov 2016 19:28:09 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0 |
Follow-up Comment #4, bug #36686 (project octave):
Maybe I'm missing the point here, but when I call the main script from comment
#0, (just skipping the clc command for clarity here), I always get the
following result with Octave 4.2.0:
>> main
ans =
-1.28000
0.64000
ans =
-1.28000
0.64000
>> main
ans =
-1.28000
0.64000
ans =
-1.28000
0.64000
>> model.odefun([2 3],0)
ans =
-1.28000
0.64000
>>
I have created two separate m-files in the current directory, called
create_func.m and gas_phase_ODE.m, one for each function defintion. Maybe
that's what I did different?
@Rik: Or did you define those two functions as subfunctions in your main.m? In
this case you migh only see Octave's "clear all bug", bug #35881. (Currently
"clear all" in Octave also clears subfunction definitions, Matlab doesn't.)
So if I think this isssue is either solved as fixed, or might just be a
duplicate of bug #35881.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36686>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/