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

string array support ? #98

Open
Nelson-numerical-software opened this issue Feb 15, 2019 · 7 comments
Open

string array support ? #98

Nelson-numerical-software opened this issue Feb 15, 2019 · 7 comments

Comments

@Nelson-numerical-software
Copy link

reading a v7.3 or v6 matfile with A = ["Nelson" "is" "open"] returns MAT_T_UNKNOWN
(tested with matio master)

A = ["Matio" "string" "array"]
save('string_array.mat', 'A', '-v7.3')

What are really supported types ?
My Soft nelson can have all equivalent variables available in mat file and I would like to use matio...

Thanks

@tbeu
Copy link
Owner

tbeu commented Feb 15, 2019

How and in which MATLAB version did you generate this MAT-file?

@Nelson-numerical-software
Copy link
Author

do you support string array ?

@tbeu
Copy link
Owner

tbeu commented Feb 15, 2019

Yes, character array is supported.

@Nelson-numerical-software
Copy link
Author

string array != character array
since 2016 string is available. It is as a cell of characters
https://fr.mathworks.com/help/matlab/ref/string.html
support or not ?

@tbeu
Copy link
Owner

tbeu commented Feb 15, 2019

Not yet supported. Let me see what I can do.

Can you save your MAT file also as v7 and v6 please.

@Nelson-numerical-software
Copy link
Author

string_array = ["Matio" "will" "support"; "string" missing() "array"] 
save('d:/string_array-v7.3.mat','string_array','-v7.3')
save('d:/string_array-v7.mat','string_array','-v7')
save('d:/string_array-v6.mat','string_array','-v6')

@tbeu
Copy link
Owner

tbeu commented Feb 15, 2019

Related to #77 and the undocumented opaque type for MCOS. At least, we have the reverse engineering available by @mbauman at https://nbviewer.jupyter.org/gist/mbauman/9121961.

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

2 participants