How do I interpret the output from fftn? (performed on a 3D matrix: time x spatial dimension 1 x spatial dimension 2)
Show older comments
I have a 3D dataset, comprised of time-series signals recorded at a range of locations in two spatial dimensions (front/back and side to side). My intention is to measure the amplitude/power of waves travelling in those two spatial dimensions, at each temporal frequency.
To achieve this, I have performed a 3D fast Fourier transform on my matrix (7 rows reflecting front/back spatial locations x 5 columns reflecting left to right spatial locations x 512 timepoints). I have then shifted the zero frequency to the centre of the output, and performed an absolute transform on that output.
This was implemented using the following line of code:
3DFFT=abs(fftshift(fftn(data)));
The output of my analysis shows significant differences between two conditions at specific locations in the two spatial dimensions, within a specific frequency. However, I'm having trouble understanding what the values at each spatial location represent. If I had performed a 2D FFT (with fft2), then my undrstanding is that the output would represent the strength of waves travelling in one direction or the other within the 1 spatial dimension.
However, with 2 spatial dimensions, does the output at each individual location reflect the strength of waves travelling to or from that point? And if so, does that include: A) forwards and backwards travelling waves, B) side to side travelling waves, and also C) diagonal travelling waves?
My confusion arose from running tests on the same data, but with fft2 (performing a 2D FFT) on each of the columns (left to right spatial locations) separately, and noticing the outputs were different from the 3D FFT, prompting me to think that each cell in the fftn output is affected by both the strength of waves travelling front/back and left to right.
Thank you in advance for any help that can be provided!
Accepted Answer
More Answers (0)
Categories
Find more on Fourier Analysis and Filtering in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

