How to zero pad in frequency domain ?

3 visualizaciones (últimos 30 días)
Karthikeyan
Karthikeyan el 14 de Oct. de 2011
how to zero-pad in frequency domain?

Respuesta aceptada

Naz
Naz el 14 de Oct. de 2011
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.

Más respuestas (1)

Greg Heath
Greg Heath el 14 de Oct. de 2011
fft
fftshift
zeropad both ends %different for N odd and N even
ifftshift
ifft % interpolates original time function
Hope this helps.
Greg

Categorías

Más información sobre Fourier Analysis and Filtering en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by