[Top][All Lists]

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

[Octave-bug-tracker] [bug #31942] Save/load single precision variables w

From: David Bateman
Subject: [Octave-bug-tracker] [bug #31942] Save/load single precision variables with MATLAB data format fails
Date: Tue, 04 Jan 2011 20:58:14 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/2009091010 Iceweasel/3.0.14 (Debian-3.0.14-1)

Update of bug #31942 (project octave):

                  Status:                   Fixed => Need Info              


Follow-up Comment #4:

As I said in the bug report and #30800, I no longer have access to a copy of
matlab and so can't easily debug this.. My only solution would be to get you
to upload the file saved by matlab and compare it against the same octave
version byte by byte. Though I'd prefer a simpler file with no structures and
one or two variables. Octave doesn't reduce floats to integers when saving
them like matlab does (ie. single(1) will be save as a uint8 by matlab to save
space). So does doing something like

a = single(pi);
b = single(exp(1));
save -v6 ab.mat a b

fail to  create a file loadable by matlab? If it does could you run the same
code in matlab and upload the file ab.mat? If not could you try

clear a
a.field1 = single(pi);
a.field2 = single(exp(1));
save -v6 a.mat a



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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