python save mat

Solutions on MaxInterview for python save mat by the best coders in the world

showing results for - "python save mat"
Montserrat
11 Jul 2019
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
queries leading to this page
python save data to matpython save mat