Skip to content

Instantly share code, notes, and snippets.

View barulalithb's full-sized avatar
😄
,

lalithbharadwajb barulalithb

😄
,
View GitHub Profile
@leouieda
leouieda / plot_wav.py
Created February 17, 2014 01:33
Python code to plot a .wav file
# 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')
@sjqtentacles
sjqtentacles / mat2csvUsingPython.py
Created September 13, 2015 23:32
Converting .mat to .csv using python
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.