-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read MAT v5 files with a struct in them #80
Comments
I have a similar issue. I have a matlab file with 7 variables: When I do a
When I try the second variant with first open then read, I got a strange behaviour:
So the first time I call
However when I evaluate the very same command once more, it is successfull. But it only contains 2 out of 7 variables. All other variables are not loaded. It also seems like this package is no longer maintained, since the last activity was on Sep 15, 2017. Which is a pity, because I would prefer to work and analyze my results with julia than with matlab. Maybe somebody feels like keeping this packed up to date? By the way: I have been using MAT Version 0.4.0 |
Same problem here. I have some Matlab table variables that are stored in MAT files. They can not be opened using MAT.jl as far as I know. |
Here my update (Julia v1.7.2, MAT v0.10.3, HDF5 v0.16.3): Here my code snippet: |
This currently works for me given the last sample and MAT v0.10.3. julia> mat = matread("Table_PolCurve.mat")
Dict{String, Any} with 2 entries:
"__opaque__" => Dict{String, Any}("s1"=>Int8[77, 67, 79, 83], "arr"=>("", UInt32[0xdd000000; 0x00000002; … ; 0x00000001; 0…
"" => UInt8[0x00 0x01 … 0x00 0x00] |
I've got the same issue. I have a table stored inside the struct. It also gets converted to a Dict{String,Any}("s1"=>Int8[77,67,79,83],..... |
@lmulder1991 Could you start a new issue and supply a sample file? |
|
Hello,
The previous grad student had a bunch of .mat files (v5) that were saved with a custom matlab struct. I can open them up using Matlab on a colleagues computer, but I'm wondering if I can also do so with Julia.
When I load a simple v5 .mat file, I'm able to read variables without a problem. But when I load the .mat files with struct, and run this code:
I get this error:
ERROR: zlib error: incorrect header check (Z_DATA_ERROR)
The bottom of the stack trace is
If I run
matread("mat_with_struct.mat", "r")
I getERROR: EOFError: read end of file
The text was updated successfully, but these errors were encountered: