Unformatted text preview: Yf = abs(fft(y,N)); %Computing the Npoint fft Yf = fftshift(Yf); %shift the zerofrequency component to center of spectrum f = [N/2:N/21]/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
This note was uploaded on 09/04/2011 for the course ES 240 taught by Professor Dr,uche during the Spring '11 term at Montgomery College.
 Spring '11
 Dr,Uche
 Frequency

Click to edit the document details