SHARE
TWEET

Untitled

a guest Jun 20th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Fs = 8000
  2. dtmf = sio.loadmat('dtmf1.mat')
  3. dictlist = []
  4.  
  5. for key, value in dtmf.items():
  6.     temp = [key,value]
  7.     dictlist.append(temp)
  8.  
  9. f1, t1, Zxx1 = signal.stft(dictlist, Fs, nperseg=512,
  10.                            window=signal.hamming(512),
  11.                            noverlap=512, boundary='even')
  12.  
  13. plt.figure()
  14. plt.pcolormesh(t1, f1, 20*np.log10(np.abs(Zxx1)))
  15. plt.xlabel('Time [s]')
  16. plt.ylabel('Freq [Hz]')$
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top