title: MATLAB Hamming Window
body: <p>I have a Hamming window of length 23 having nonzero samples <code>N</code> ranging from 0 to 22.</p>
  
  <p>I need to plot <code>w(N)</code> so I used</p>
  
  <pre><code>N=32;
  L=N+1;
  w= hamming(L,'periodic');
  plot(w);
  </code></pre>
  
  <p>I noticed that the first sample is staring from 1 and not form 0. Is this how it should be or should I shift it by -1?</p>