matlab frequency time domain plot
You can try this:
(let's say that your signal 'x' is random gaussian noise with zero mean and unit variance - you can use whatever you want - and your FFT size is NFFT)
x = randn(1,100);
NFFT = 1024;
X = fft(x, NFFT);
plot(-NFFT/2:NFFT/2 - 1, fftshift(abs(X)))
X is usually a complex signal, so we use its absolute value to plot it (You can plot the real or imaginary part seperately).
The fftshift function is used to shift the spectrum around DC frequency.
To get back your time domain signal, just use:
xx = ifft(X, NFFT);
I hope that it helps...