MATLAB: DFT of complex sine wave

dftMATLABsine

Hello,
I have to calculate the DFT of the following signals sampled at 32 kHz. Plot the magnitude, phase, real and imaginary parts of the DFT coefficients.
I have done dft of simple sinewave, but nothing like this.
Please help me 🙂
x = sin(2*pi*8000*t) + j*sin(2*pi*8000*t), signal length: 8 samples

Best Answer

You will need these functions: abs, angle, real, imag.
I leave the rest to you.