Borrar filtros
Borrar filtros

How to use fft2 and find spatial wavenumbers (kx & ky) ?

6 visualizaciones (últimos 30 días)
Nitesh Anerao
Nitesh Anerao el 20 de Feb. de 2015
Respondida: Daniel kiracofe el 11 de Nov. de 2016
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
These are (5x5) arrayi.e 25 microphones arranged in 2-d space and each captures say 10000 samples/sec of data in time domain and this data is been stored in notepad as [10000(samples) x 25(mic's)] ,now i have data which is temporal and spatial hence I am stuck up with usage of FFT2.
  1. I finally want to find fft2 of spatial data(x,y) and not temporal data
  2. find kx and ky if possible
  3. find the frequency of wave from mic data ?
  1 comentario
fs pramudya
fs pramudya el 7 de Nov. de 2016
Hi there, have you find the answer of this question? i am new using matlab and encountering same problem. thanks!

Iniciar sesión para comentar.

Respuestas (1)

Daniel kiracofe
Daniel kiracofe el 11 de Nov. de 2016
First, you need to reshape your data so that it is 10000x5x5 instead of 10000x25 ("reshape" command could help here).
Then, assuming it is stored in a variable called "data", and that you want to find the spatial fft at sample "i" you could just do
result = fft2( squeeze( data(i,:,:) ) );

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by