how to use loadmat in python with location of .mat file code example
Example 1: open mat file in python
#!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']
Example 2: open mat python
from mat4py import loadmat
data = loadmat('datafile.mat')