Skip to content

Instantly share code, notes, and snippets.

@anbara
Created October 15, 2017 13:08
Show Gist options
  • Save anbara/d98c6fd8235fd85833ad61df5414a719 to your computer and use it in GitHub Desktop.
Save anbara/d98c6fd8235fd85833ad61df5414a719 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
# インクルード
import numpy as np
import scipy.io
# データ作成
arr = np.zeros((10,), dtype=[('pyhton','f8'),('matlab','f8')])
# mat保存
scipy.io.savemat("test.mat", {'name':arr})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment