This preview shows page 1. Sign up to view the full content.
Unformatted text preview: Yf = abs(fft(y,N)); %Computing the N-point fft Yf = fftshift(Yf); %shift the zero-frequency component to center of spectrum f = [-N/2:N/2-1]/N;%the x axis which is the normalized frequency f figure plot(f, Yf), xlabel('frequency / fs') grid; title('Approximate Spectrum of a Sinusoid with the FFT');...
View Full Document
- Spring '11