2D FFT of a 4D matrix

2 次查看(过去 30 天)
Roger ALIMI
Roger ALIMI 2022-1-20
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.

回答(1 个)

Bjorn Gustavsson
Bjorn Gustavsson 2022-1-20
Shouldn't this effectively be the same as running an FFT on the entire 4D-array (with some confusion about normalization-factors)?
  8 个评论
Roger ALIMI
Roger ALIMI 2022-1-23
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 2022-1-24
Great that it solved your problem.
The order should by definition not matter since the transform separates over orthogonal dimensions...

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by