diff dsp/dftbw.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/dftbw.m	Sun Jan 20 13:48:47 2013 +0000
@@ -0,0 +1,6 @@
+% dftbw - Normalised bandwidths of bands in a DFT
+% dftbw :: N:natural -> [[dftbins(N)]].
+function df=dftbw(N)
+	df=ones(dftbins(N),1);
+	df(1:ceil(N/2):end)=0.5;
+end