Answers for "read mat file header python numpy"

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']
Posted by: Guest on January-29-2020
0

read mat file header python numpy

#!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']
Posted by: Guest on March-31-2021

Python Answers by Framework

Browse Popular Code Answers by Language