Error Using Load, Can't Read File in Matlab -
i'm matlab rookie , totally stumped this: i'm trying use "load" read 2 .mat files. 1 works fine. when use "load '/home/filepath/file2.mat'" load other,
error using load can't read file
if check "exist file2.mat" or "exist file1.mat", see "ans = 2" (same thing full file path). have same permissions , of similar sizes. ideas going on here?
i built .mat files in python, possible file source of problem. used scipy, specifically:
scipy.io.savemat('./file2.mat', mdict={'wo_scopus': np.asarray(all_unique_word, dtype='object').reshape(len(all_unique_word), 1)}) scipy.io.savemat("./file1.mat", mdict={"an_scopus":np.asarray(all_unique_author, dtype='object').reshape(len(all_unique_author), 1)})
"whos -file file2.mat" produces
name size bytes class attributes wo_scopus 137119x1 17711126 cell
which seems correct.
turns out encoding issue on larger dataset, though would've expected more specific error matlab. fixed iterating on output list in python script , using .encode('utf-8') before sending savemat.
Comments
Post a Comment