Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  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]')$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement