Mercurial > hg > ishara
diff dsp/phasedata.m @ 32:c3b0cd708782
Imported core dsp tools.
author | samer |
---|---|
date | Sun, 20 Jan 2013 13:48:47 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dsp/phasedata.m Sun Jan 20 13:48:47 2013 +0000 @@ -0,0 +1,13 @@ +% phasedata - Spectral data from buffered frames +% +% phasedata :: +% seq([[N,L]]) ~'source data', +% (N:natural->[[N]]) ~'function to compute window, eg hanning' +% -> seq([[M,L]]). + +function a=phasedata(x,windowfn) + H=spdiag(feval(windowfn,size(source,1))); + a=map(@(x)phasespec(H*x),source); +end + +