Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. Carry out the overlap-add FFT processing:
  2.  
  3. y = zeros(1,Nsig + Nfft); % allocate output+'ringing' vector
  4. for m = 0:(Nframes-1)
  5. index = m*R+1:min(m*R+M,Nsig); % indices for the mth frame
  6. xm = sig(index); % windowed mth frame (rectangular window)
  7. xmzp = [xm zeros(1,Nfft-length(xm))]; % add zero to the signal
  8. Xm = fft(xmzp);
  9. Ym = Xm .* H; % freq domain multiplication
  10. ym = real(ifft(Ym)) % fft inverse transform
  11. outindex = m*R+1:(m*R+Nfft); % out indices
  12. y(outindex) = y(outindex) + ym; % recovering a signal
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement