Skip to content

Instantly share code, notes, and snippets.

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