Numpy: Load from Matlab file to a Numpy array
examples/matlab/load.py
import scipy.io file_path = 'data.mat' mat = scipy.io.loadmat(file_path) data = mat['data'] print(type(data)) print(data)
- numpy.ndarray
import scipy.io file_path = 'data.mat' mat = scipy.io.loadmat(file_path) data = mat['data'] print(type(data)) print(data)