Borrar filtros
Borrar filtros

frequencies from fft2 matrix

4 visualizaciones (últimos 30 días)
lux85
lux85 el 18 de Mzo. de 2012
Hi guys! I have a matrix that results from fft2 [matrix(f1,f2)]. I would like to take (from the matrix) values with frequencies between an interval, for example: x = find(f1 < 0.5 & f1 > 0.05) y = find(f2 < 0.5 & f2 > 0.05) How can I get it? Thank you!

Respuestas (1)

Dr. Seis
Dr. Seis el 19 de Mzo. de 2012
The example I show assumes that if you take the 2D Fourier transform of an MxN matrix that both M and N are divisible by two. If either M or N are odd, then the definitions of the frequency ranges will have to be defined differently. Around the part where I start plotting stuff, I compute the 2D FFT using Matlabs fft2 and I use fftshift to be able to plot it according to the frequency ranges I define earlier.
Let me know if you have any questions.

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