Numpy: Save a Numpy array as a Matlab file



examples/matlab/save.py
import scipy.io
import numpy as np

data = np.random.random((2, 5))
print(data)

file_path = 'data.mat'
scipy.io.savemat(file_path, {'data': data})