Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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']
Source by scipy-cookbook.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #open #mat #file #python
ADD COMMENT
Topic
Name
4+5 =