(New page: === Test Page === This is the test page, like a sandbox, where you can try whatever you want. <source> function S = DFTsum(x) N = length(x); S = zeros(1, N); n = 1:N; for k = 1:N S(...) |
|||
Line 2: | Line 2: | ||
This is the test page, like a sandbox, where you can try whatever you want. | This is the test page, like a sandbox, where you can try whatever you want. | ||
− | <source> | + | <source lang="matlab"> |
function S = DFTsum(x) | function S = DFTsum(x) | ||
Revision as of 21:17, 24 February 2008
Test Page
This is the test page, like a sandbox, where you can try whatever you want.
function S = DFTsum(x) N = length(x); S = zeros(1, N); n = 1:N; for k = 1:N S(k) = sum(x(n) .* exp(-j*2*pi*(k-1)*(n-1)/N)); end end