Created
February 14, 2020 06:52
-
-
Save mcsmonk/769c3a4153148d7450cddf6a5dbbbfe2 to your computer and use it in GitHub Desktop.
Revisions
-
mcsmonk created this gist
Feb 14, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ #!/usr/bin/env python # coding: utf-8 import hdf5storage import numpy as np arr = np.array([1,2,3,4,5], dtype=np.double) matfiledata = dict([('arr', arr)]) hdf5storage.write(matfiledata, '.', 'example.mat', matlab_compatible=True)