Hi,

I have a problem with the calculation of DFT(discrete fourier transform) of the signal x(n) above. I've attached the signal x(n) and also the definition of DFT I am using.

So, How can I calculate Xk ,the dft, of this signal?

This is what I did.

for k=0,1,2...N-1

Can you tell me if this is right and also help me to sketch the magnitude of Xk as a function of k in the range of 0...N-1 ?

Thanks in advance,

Nikolas