Unformatted text preview: figure(2) stem(freqs, abs(fftshift(xz))); title('FFT of (x with zero pading)') %% we have Used the rectangular of window w_rect=ones(1,N); stem(w_rect) freqz(w_rect) title('Frequency respones of rect window') %% Now, letss use a better window w_ham = hamming(N) y=x.* w_ham'; subplot(2,1,1), stem(x), subplot(2,1,1), stem(y), %% Zero pad windowed signal M=256; yz= zeros(1,M); yz(1:N)=y; freqs = [1:2/M:(12/M); subplot...
View
Full Document
 Spring '08
 Staff
 Rectangular function, The Signal, Zero pad signal

Click to edit the document details