2D FFT of a 4D matrix

13 views (last 30 days)
Roger ALIMI
Roger ALIMI on 20 Jan 2022
Commented: Bjorn Gustavsson on 24 Jan 2022
Hi,
I have a 4D matrix M(x,px,y,py); I need to perform 2D FFT along the (x,y) coordinates and a 2DIFFT along the (px,py) coordinates. Is it possible to use only FFT ( and IFFT) function which can deal with separated dimensions ? Or maybe FFT2 (and IFFT2) although this function cannot work along specific dimensions ? Thank you for any help.

Answers (1)

Bjorn Gustavsson
Bjorn Gustavsson on 20 Jan 2022
Shouldn't this effectively be the same as running an FFT on the entire 4D-array (with some confusion about normalization-factors)?
  8 Comments
Roger ALIMI
Roger ALIMI on 23 Jan 2022
Thanks again Bjorn,
You are right, using a sequential call of 2 ffts and 2 iffts (the order does does not matter I guess) seems to do the job.
Regards,
Roger
Bjorn Gustavsson
Bjorn Gustavsson on 24 Jan 2022
Great that it solved your problem.
The order should by definition not matter since the transform separates over orthogonal dimensions...

Sign in to comment.

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!