I am trying to understand the difference between DCT and FFT in the context of compression. There is a nice practical example given here. (near the end of the page)
When I try it in matlab I am stuck at plotting the ifft values (which are complex). The plot command cannot plot the complex signal. One natural question comes to my mind, when is the ifft value complex, and when is it real? If it is complex, is it fine to discard the imaginary parts and keep only the real part?
What is the right way to reconstruct the real signal x from ifft complex values?