You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to load an object that I converted to a struct. The struct is correctly parsed into a Dict, but the table itself gets converted into another Dict with the "S0/1/2" & "arr" keys instead of the table it self. In the exampe I created a simple table, but it happens to any table I think, at least also my more complex table ends up in this same format.
Facing the same/similar issue here with tables nested within tables. As an example, consider the attached file subtable.zip (containing a subtable.mat). subtable.zip
It was created, I think, with the following MNWE script:
x = [11; 12];
y = [13; 14];
t1 = table(x, y);
x = [21; 22];
y = [23; 24];
t2 = table(x, y);
s.subtable =t1;
s(2).subtable =t2;
It contains a table, of which one of the fields is itself a table. Upon reading it in Julia, the result is not what I would hope:
>> loaded= load('subtable.mat');
>> loaded.s(1).subtable
ans =2×2 tablexy ____11131214butin Julia the result is weird...julia>loaded=MAT.matread("subtable.mat")
Dict{String, Any} with2entries:""=> UInt8[0x000x01 … 0x000x00]
"s"=> Dict{String, Any}("subtable"=>Any[Dict{String, Any}("s1"=>Int8[77, 67, 79, 83], "arr"=>(""[…]
I tried to load an object that I converted to a struct. The struct is correctly parsed into a Dict, but the table itself gets converted into another Dict with the "S0/1/2" & "arr" keys instead of the table it self. In the exampe I created a simple table, but it happens to any table I think, at least also my more complex table ends up in this same format.
test_data.zip
The text was updated successfully, but these errors were encountered: