How to use fft2 and find spatial wavenumbers (kx & ky) ?
2 次查看(过去 30 天)
显示 更早的评论
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
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.
- I finally want to find fft2 of spatial data(x,y) and not temporal data
- find kx and ky if possible
- find the frequency of wave from mic data ?
1 个评论
fs pramudya
2016-11-7
Hi there, have you find the answer of this question? i am new using matlab and encountering same problem. thanks!
回答(1 个)
Daniel kiracofe
2016-11-11
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,:,:) ) );
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!