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

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

[Octave-bug-tracker] [bug #45706] Unable to load -v7.3 MAT-file containi


From: Rik
Subject: [Octave-bug-tracker] [bug #45706] Unable to load -v7.3 MAT-file containing cells
Date: Thu, 06 Aug 2015 15:56:34 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)

Update of bug #45706 (project octave):

              Item Group:         Feature Request => Matlab Compatibility   
                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #3:

I'm not sure Octave supports '-v7.3' at all.  The list of MAT-file formats is
here
http://www.mathworks.com/help/matlab/import_export/mat-file-versions.html. 
When I check Octave's own documentation for the load function with 'help load'
I see that the latest is '-v7'.  Trying this with your example file I get some
more information.


load -v7 test73.mat 
warning: load: found version 2 binary MAT file, but only prepared for version
1
error: load: invalid element type = 0
error: load: trouble reading binary file 'test73.mat'


Using the original syntax I get


load test73.mat 
warning: load: can't read 'a' (unknown datatype)


There is some difference between scalars and arrays.  Could you try creating a
true cell array and seeing if it works?


a = cell (2,2)
a{1,2} = 1;
save('test73c.mat','a','-v7.3')


And is it only cells, or is everything broken?


a = zeros (2,2)
a(1,2) = 1;
save('test73m.mat','a','-v7.3')




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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