02.10.2019 Views

UploadFile_6417

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

144 Chapter 5 THE DISCRETE FOURIER TRANSFORM<br />

would be to use a matrix-vector multiplication for each of the relations<br />

in (5.5). We have used this approach earlier in implementing a numerical<br />

approximation to the discrete-time Fourier transform. Let ˜x and ˜X denote<br />

column vectors corresponding to the primary periods of sequences ˜x(n)<br />

and ˜X(k), respectively. Then (5.5) is given by<br />

˜X = W N ˜x<br />

˜x = 1 N W∗ N ˜X<br />

(5.6)<br />

where the matrix W N is given by<br />

W N<br />

△<br />

=<br />

[<br />

⎡ n −→ ⎤<br />

1 1 ··· 1<br />

]<br />

1 W<br />

WN<br />

kn<br />

N 1 ··· W (N−1)<br />

N<br />

0≤k,n≤N−1<br />

= k<br />

↓⎢<br />

⎣.<br />

.<br />

. .. . .. ⎥<br />

⎦<br />

1 W (N−1)<br />

N<br />

··· W (N−1)2<br />

N<br />

(5.7)<br />

The matrix W N is a square matrix and is called a DFS matrix. The<br />

following MATLAB function dfs implements this procedure.<br />

function [Xk] = dfs(xn,N)<br />

% Computes Discrete Fourier Series Coefficients<br />

% ---------------------------------------------<br />

% [Xk] = dfs(xn,N)<br />

% Xk = DFS coeff. array over 0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!