Diff of /auditory/gammatonefir.m [b6ad1a] .. [23f8f0]  Maximize  Restore

  Switch to side-by-side view

--- a/auditory/gammatonefir.m
+++ b/auditory/gammatonefir.m
@@ -90,7 +90,7 @@
   n=5000;
 end;
 
-b={};
+b=cell(nchannels,1);
 
 for ii = 1:nchannels
 
@@ -126,9 +126,9 @@
 
   
   % Insert zeros before the start of the signal.
-  b{ii}=[bwork(1:nlast);zeros(n-nlast-nfirst,1);bwork(nlast+1:nlast+nfirst)];
+  bwork = fftshift([bwork(1:nlast);zeros(n-nlast-nfirst,1);bwork(nlast+1:nlast+nfirst)]);
     
-  b{ii}=normalize(b{ii},flags.norm);  
-  
+  bwork = normalize(bwork,flags.norm);  
+  b{ii} = struct('h',bwork,'offset',-floor(numel(bwork)/2),'realonly',0);
 end;
 

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks