How to zero pad in frequency domain ?
조회 수: 3 (최근 30일)
이전 댓글 표시
how to zero-pad in frequency domain?
댓글 수: 0
채택된 답변
Naz
2011년 10월 14일
You zeropad a matrix of frequency spectrum the same way you would zeropad any matrix. For example, if your frequency matrix is m*n and you want to add two rows of zeros at the top and bottom, you simply do:
x=zeros(2,n);
zeropaddedmatrix=[x;matrix;x];
which will result in
000000
000000
matrix
000000
000000
Now, how to zeropad a frequency spectrum is a different question and depends on the particular application, that is, how you want to alter your frequency spectrum.
댓글 수: 0
추가 답변 (1개)
Greg Heath
2011년 10월 14일
fft
fftshift
zeropad both ends %different for N odd and N even
ifftshift
ifft % interpolates original time function
Hope this helps.
Greg
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!