Permalink
Browse files

adding npz2mat

  • Loading branch information...
rogersce committed May 3, 2012
1 parent e3ca1e6 commit 2442faf4b9f018ebdb673c1c7fbd0010a9850d77
Showing with 15 additions and 0 deletions.
  1. +15 −0 npz2mat
View
15 npz2mat
@@ -0,0 +1,15 @@
#!/usr/bin/env python
import sys
from numpy import load
from scipy.io import savemat
assert len(sys.argv) > 1
files = sys.argv[1:]
for f in files:
data = load(f)
fn = f.replace('.npz','')
fn = fn.replace('.','_') #matlab cant handle dots
savemat(fn,data)

0 comments on commit 2442faf

Please sign in to comment.