Mercurial > hg > ishara
view dsp/cepstrum.m @ 58:ba866ae124c6
Now accepts single color index for all points.
author | samer |
---|---|
date | Fri, 09 Oct 2015 13:01:37 +0100 |
parents | c3b0cd708782 |
children |
line wrap: on
line source
% cepstrum - generalised cepstral coefficients from warped power spectrogram % % cepstrum :: % [[M]->[K]] ~'which coefficients to compute', % [[K]] ~'edges for (K-2)-band filterbank', % [[N]] ~'centre frequencies of spectrum bins', % [[N,T]] ~'input spectra', % -> [[M,T]] ~'MFCCs for L time slices'. function y = cepstrum(MX,edges,fx,x) melW = tri_filterbank(edges,fx); dctW = dct(eye(size(melW,1))); y = dctW(MX,:)*log(melW*x); end