How to zero pad in frequency domain ?
3 次查看(过去 30 天)
显示 更早的评论
采纳的回答
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!