2D FFT of a 4D matrix

조회 수: 2 (최근 30일)
Roger ALIMI
Roger ALIMI 2022년 1월 20일
댓글: Bjorn Gustavsson 2022년 1월 24일
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