{"action":"created","issue":{"url":"https://api.github.com/repos/simonster/MAT.jl/issues/37","labels_url":"https://api.github.com/repos/simonster/MAT.jl/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/simonster/MAT.jl/issues/37/comments","events_url":"https://api.github.com/repos/simonster/MAT.jl/issues/37/events","html_url":"https://github.com/simonster/MAT.jl/issues/37","id":52874706,"number":37,"title":"Support for 7.0 MAT files","user":{"login":"ncnc","id":2505082,"avatar_url":"https://avatars.githubusercontent.com/u/2505082?v=3","gravatar_id":"","url":"https://api.github.com/users/ncnc","html_url":"https://github.com/ncnc","followers_url":"https://api.github.com/users/ncnc/followers","following_url":"https://api.github.com/users/ncnc/following{/other_user}","gists_url":"https://api.github.com/users/ncnc/gists{/gist_id}","starred_url":"https://api.github.com/users/ncnc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncnc/subscriptions","organizations_url":"https://api.github.com/users/ncnc/orgs","repos_url":"https://api.github.com/users/ncnc/repos","events_url":"https://api.github.com/users/ncnc/events{/privacy}","received_events_url":"https://api.github.com/users/ncnc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-25T23:44:36Z","updated_at":"2015-01-08T22:52:05Z","closed_at":null,"body":"Apart from the currently supported 5.0 and 7.3 file formats, there is a 7.0 format, which is also appears to be based on HDF5. See e.g. http://www.mathworks.com/help/matlab/import_export/mat-file-versions.html\r\n\r\nI tried reading a 7.0 file (containing a structure with a matrix field) and that file could be read with the same low-level code as 7.3., i.e. the patch below seemed to work correctly:\r\n```\r\ndiff --git a/src/MAT.jl b/src/MAT.jl\r\nindex 8858610..b1d5876 100644\r\n--- a/src/MAT.jl\r\n+++ b/src/MAT.jl\r\n@@ -49,6 +49,7 @@ function matopen(filename::String, rd::Bool, wr::Bool, cr::Bool, tr::Bool, ff::B\r\n \r\n     # Send to appropriate module\r\n     magic == \"MATLAB 7.3 MAT-file\".data ? MAT_HDF5.matopen(filename, rd, wr, cr, tr, ff) :\r\n+    magic == \"MATLAB 7.0 MAT-file\".data ? MAT_HDF5.matopen(filename, rd, wr, cr, tr, ff) :\r\n     magic == \"MATLAB 5.0 MAT-file\".data ? MAT_v5.matopen(filename, rd, wr, cr, tr, ff) :\r\n         error(\"\\\"$filename\\\" is not a MAT file, or is an unsupported (v4) MAT file\")\r\n end\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/simonster/MAT.jl/issues/comments/69264963","html_url":"https://github.com/simonster/MAT.jl/issues/37#issuecomment-69264963","issue_url":"https://api.github.com/repos/simonster/MAT.jl/issues/37","id":69264963,"user":{"login":"simonster","id":470884,"avatar_url":"https://avatars.githubusercontent.com/u/470884?v=3","gravatar_id":"","url":"https://api.github.com/users/simonster","html_url":"https://github.com/simonster","followers_url":"https://api.github.com/users/simonster/followers","following_url":"https://api.github.com/users/simonster/following{/other_user}","gists_url":"https://api.github.com/users/simonster/gists{/gist_id}","starred_url":"https://api.github.com/users/simonster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonster/subscriptions","organizations_url":"https://api.github.com/users/simonster/orgs","repos_url":"https://api.github.com/users/simonster/repos","events_url":"https://api.github.com/users/simonster/events{/privacy}","received_events_url":"https://api.github.com/users/simonster/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T22:52:05Z","updated_at":"2015-01-08T22:52:05Z","body":"`save -v7 ...` saves a file with header `\"MATLAB 5.0 MAT-file\"` that's essentially in MATLAB v5 format with compression, which we support and have [test data for](https://github.com/simonster/MAT.jl/tree/master/test/v7). I've never seen MATLAB write a file with the header `\"MATLAB 7.0 MAT-file\"`. Do you know what version of MATLAB you used and what parameters (if any) you passed to `save`?"}}