python code to read .mat file code example
Example 1: python open mat file
import scipy.io
mat = scipy.io.loadmat('file.mat')
Example 2: read .mat file in python
import h5py
with h5py.File('test.mat', 'r') as file:
print(list(file.keys()))
import scipy.io
mat = scipy.io.loadmat('file.mat')
import h5py
with h5py.File('test.mat', 'r') as file:
print(list(file.keys()))