Skip to content
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

MAT.jl can not open variables storing string arrays. #166

Open
Leon6j opened this issue Oct 23, 2021 · 0 comments
Open

MAT.jl can not open variables storing string arrays. #166

Leon6j opened this issue Oct 23, 2021 · 0 comments

Comments

@Leon6j
Copy link

Leon6j commented Oct 23, 2021

I have two string arrays stored in a MAT file named test3.mat. They can be read out easily within Matlab, but I’m having big trouble reading them out in Julia.

Below is my code:

using MAT
F1 = matopen("test3.mat");
a = read(F1, "a");
a = read(F1, "b");
close(F1);

Here is a link to the test3.mat file:
https://www.icloud.com/iclouddrive/0CtmgoektpD9oYZf2nzrN1aVQ#test3

Here is one of the string arrays that was read out of the MAT file in Matlab:

a =

20×1 string array

"HLY0802"
"HLY0802"
"HLY0802"
"HLY0802"
"HLY0802"
"HLY0802"
"HLY0802"
"HLY0802"
"HLY0802"
"HLY0802"
"HLY0802"
"HLY0802"
"HLY0802"
"HLY0802"
"HLY0802"
"HLY0802"
"HLY0802"
"HLY0802"
"HLY0802"
"HLY0802"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant