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
# Load the required libraries: | |
# * scipy | |
# * numpy | |
# * matplotlib | |
from scipy.io import wavfile | |
from matplotlib import pyplot as plt | |
import numpy as np | |
# Load the data and calculate the time of each sample | |
samplerate, data = wavfile.read('Clapping.wav') |
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=',') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.