-
-
Save animeshsrivastava24/2171278efd3e44e3d0ece85307e0ff26 to your computer and use it in GitHub Desktop.
Converting .mat to .csv using python
This file contains 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 characters
import scipy.io | |
import numpy as np | |
data = scipy.io.loadmat("subject.mat") | |
for i in data: | |
if '__' not in i and 'readme' not in i: | |
np.savetxt(("filesforyou/"+i+".csv"),data[i],delimiter=',') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ValueError: Expected 1D or 2D array, got 3D array instead