reshape

matlab实例
reshape(psi, n, p)
python实例
psi.reshape(n, p, order='F')
备注
转python说明
matlab默认按列,numpy要指定方向,order='F'