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

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

[Octave-bug-tracker] [bug #48408] save -append should overwrite a variab


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #48408] save -append should overwrite a variable with the same name
Date: Tue, 5 Jul 2016 15:33:05 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0

Update of bug #48408 (project octave):

                Severity:              3 - Normal => 2 - Minor              
                  Status:                    None => Confirmed              
        Operating System:       Microsoft Windows => Any                    
                 Summary: Changing a variable and saving file with -append in
Octave makes it impossible to load a particular variable in MATLAB => save
-append should overwrite a variable with the same name

    _______________________________________________________

Follow-up Comment #1:

Thank you for contributing this bug report.

In Octave, the following


>> a = 23;
>> b = 24;
>> save foo.txt
>> b = 42;
>> save -append foo.txt b


results in a file that contains one copy of "a" and two copies of "b" with
different values.

In Octave, loading from the file always retrieves the last value of "b",
either with


>> load foo.txt
>> load foo.txt b


So the primary bug seems to be that Octave does not overwrite a variable with
the same name in the file if the -append option is given. This is explicitly
mentioned in Matlab's help for save at
https://www.mathworks.com/help/matlab/ref/save.html.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48408>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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