title: Using Matlab's sinc() in filter design?
body: <p>In order to design a filter (windowing method), I first generate my sinc function, like so:  </p>
  
  <pre><code>L = 20;
  fc = 0.25;
  n = (1:L)';
  my_sinc = sin(2*pi*fc*(n-L/2)) ./ (pi*(n-L/2));            
  my_sinc(L/2) = 2*fc;
  </code></pre>
  
  <p>Then I apply window:</p>
  
  <pre><code>win = blackman(L, 'symmetric');
  filter_coeffs = (my_sinc .* win);
  </code></pre>
  
  <p>Can the first step be done using Matlab's builtin <code>sinc()</code> function? </p>