This code on Python creates cell "STRINGS" in .mat-file:
data = {"STRINGS": numpy.empty((0),dtype=numpy.object)}
data["STRINGS"] = numpy.append( data["STRINGS"], "Some string" )
scipy.io.savemat( output_mat_file, data )
In matlab I get cell STRINGS:
>> STRINGS{1}
ans =
Some string
How could I get ordinary matrix? For instance:
>> strings(1,:) = char('Some ');
>> strings(1,:)
ans =
Some
EDIT
If I run following code, I'll get misunderstood array mangling.
Python:
list = ['hello', 'world!!!']
scipy.io.savemat(output_mat_file, mdict={'list':list})
Matlab:
>> list
list =
hlo wrd!