1>>> from scipy.io import savemat
2>>> a = np.arange(20)
3>>> mdic = {"a": a, "label": "experiment"}
4>>> mdic
5{'a': array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
6 17, 18, 19]),
7'label': 'experiment'}
8>>> savemat("matlab_matrix.mat", mdic)
9