bugGNU Octave - Bugs: bug #45706, Unable to load -v7.3 MAT-file...


bug #45706: Unable to load -v7.3 MAT-file containing cells

Submitted by:  Marco Caliari <caliari>
Submitted on:  Thu 06 Aug 2015 03:04:58 PM UTC  
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


( Jump to the original submission)

Fri 16 Mar 2018 09:10:53 PM UTC, comment #8:

Yes, libmatio is GPL compatible and may be linked to from Octave.

Mike Miller <mtmiller>
Project Administrator
Fri 16 Mar 2018 09:02:20 PM UTC, comment #7:

Is matio's BSD license sufficiently compatible with Octave's GPL3?

Philip Nienhuis <philipnienhuis>
Project Member
Fri 16 Mar 2018 06:54:05 PM UTC, comment #6:

The lack of compatibility between Matlab and Octave with respect to mat files in 7.3 format means that there is no way by which variables > 2GB can be shared between Matlab and Octave users.

A way to fix this lack of compatibility would be porting (or supporting) the MATLAB MAT File I/O Library:


avlas <kupiqu>
Thu 29 Dec 2016 10:33:23 PM UTC, comment #5:

This behavior is still the same in Octave 4.2.0.

Hartmut <hardy>
Fri 07 Aug 2015 06:30:50 AM UTC, comment #4:

Hi Rik,

test73m.mat can be loaded without any problem. I knew that, and that is why I thought the problem in my original report was a bug or a compatibility issue, not a feature request.
test73c.mat cannot be loaded.

Why don't add a sentence like "MATLAB version 7.3 is not fully supported", just below -v7 option in load help?



Marco Caliari <caliari>
Project Member
Thu 06 Aug 2015 03:56:34 PM UTC, 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.

Using the original syntax I get

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

And is it only cells, or is everything broken?

Rik <rik5>
Project Administrator
Thu 06 Aug 2015 03:44:15 PM UTC, comment #2:

Octave's load function is only expected to be able to read HDF5 files that are created by Octave's save function in HDF5 format. It is not expected to work for Matlab's new HDF5-based MAT file format, or any other arbitrary HDF5 files.

I've marked this as a feature request.

I bet this is also a duplicate of another report, but I haven't checked.

John W. Eaton <jwe>
Project Administrator
Thu 06 Aug 2015 03:05:33 PM UTC, comment #1:

The attachment...


(file #34580)

Marco Caliari <caliari>
Project Member
Thu 06 Aug 2015 03:04:58 PM UTC, original submission:

Dear all,

the attached file was created in Matlab with

If I try to load it in Octave 3.8.2 I get



Marco Caliari <caliari>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #34580:  test73.mat added by caliari (4KiB - application/octet-stream)


Depends on the following items: None found

   bug dependencies.


Carbon-Copy List
  • -email is unavailable- added by kupiqu (Posted a comment)
  • -email is unavailable- added by hardy (Posted a comment)
  • -email is unavailable- added by mtmiller (Updated the item)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by caliari (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-05-01 mtmiller Release3.8.2 => dev
    2018-03-16 mtmiller Dependencies- => bugs #53361 is dependent
    2015-12-22 mtmiller CategoryNone => Interpreter
    2015-08-06 rik5 Item GroupFeature Request => Matlab Compatibility
        StatusNone => Confirmed
    2015-08-06 jwe Item GroupMatlab Compatibility => Feature Request
    2015-08-06 caliari Attached File- => Added test73.mat, #34580

    Back to the top

    Powered by Savane 3.4