|
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:1.9.0.14) 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 D. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?31942> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |