Fork me on GitHub

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转置

np.reshape(xx, (-1, 1))

 

posted on 2014-11-30 10:45  huashiyiqike  阅读(766)  评论(0编辑  收藏  举报