It looks like savemat is producing .mat
files that MATLAB cannot open when they contain Chinese characters, but loadmat
is able to:
$ python -c 'from scipy.io import *; savemat("tmp.mat", {"test": "你好"}); print(loadmat("tmp.mat")["test"])' && matlab -nodesktop -r 'load tmp; exit'
['你好']
To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.
Error using load
Can't read file /home/tmp.mat.
Any ideas how I can either change savemat
to output something MATLAB can open or change MATLAB settings such that I can read the files?