Improving the Resolution in FFT
13 views (last 30 days)
I need to get an output like below.
But this is the output I get as a result of the code I wrote.
N = 5;
n = -N-2: 1 : N+2;
u = unit(n+N/2)-unit(n-N/2);
X = fftshift(fft(u));
How can I do this, thank you very much for your help.