Answers for "loadmat object not callable"

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

Code answers related to "loadmat object not callable"

Python Answers by Framework

Browse Popular Code Answers by Language