1#!python
2#!/usr/bin/env python
3from scipy.io import loadmat
4x = loadmat('test.mat')
5lon = x['lon']
6lat = x['lat']
7# one-liner to read a single variable
8lon = loadmat('test.mat')['lon']
9
1#!python
2#!/usr/bin/env python
3from scipy.io import loadmat
4x = loadmat('test.mat')
5lon = x['lon']
6lat = x['lat']
7# one-liner to read a single variable
8lon = loadmat('test.mat')['lon']