python load mat 並按變量名賦值

import numpy as np
import scipy.io as io


creat = locals()
tmp = io.loadmat("all.mat")
for i in tmp:
    print i
    creat[i] = tmp[i]

 1D-array轉置spa

np.reshape(xx, (-1, 1))
相關文章
相關標籤/搜索