JuliaIO / MAT.jl

Julia module for reading MATLAB files
MIT License
280 stars 71 forks source link

BoundsError when struct contains 3D char array #176

Open TomRottier opened 2 years ago

TomRottier commented 2 years ago

MWE:

In Matlab create struct with 3D char array and save as .mat

c1 = ['abc'; 'abc'];
char_array3D = cat(3, c1, c1)
s = struct('c', char_array3D)
save('s.mat', 's')

In Julia read .mat file containing 3D char array

using MAT
d = matread("s.mat")