Skip to content

Instantly share code, notes, and snippets.

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