title: Nested loops of DFT in matlab
body: <p>Can someone explain these nested loops of DFT in matlab:</p>
  
  <pre><code>N=length(x);
  for k=1:N
    X(k)=0;
    for n=1:N
      X(k)=X(k)+x(n).*exp(-1j.*2.*pi.*(n-1).*(k-1)./N);
    end
  end
  </code></pre>