title: Moving window integration filter matlab
body: <p>I need to apply a moving window integration filter to a signal in Matlab, I've found the code below which apparently does it but i don't understand how it works, can someone explain?</p>
  
  <pre><code>% Make impulse response
  h = ones (1 ,31)/31;
  Delay = 15; % Delay in samples
  
  % Apply filter
  x6 = conv (x5 ,h);
  x6 = x6 (15+[1: N]);
  x6 = x6/ max( abs(x6 ));
  </code></pre>