📜  读取 mat 文件头 python numpy - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:24.279000             🧑  作者: Mango

代码示例2
#!python
#!/usr/bin/env python
from scipy.io import loadmat
x = loadmat('test.mat')
lon = x['lon']
lat = x['lat']
# one-liner to read a single variable
lon = loadmat('test.mat')['lon']