How fast fourier transform works on matrix like 3 x 3 matrix

5 次查看(过去 30 天)
Hello,
I am still learning about how fast fourier transform works on matrix 3 x 3 i want to see how the calculation to get the number at the final it same goes to inverse fourier transform, please help me the matrix example is
1 2 3
4 5 6
7 8 9

回答(1 个)

Walter Roberson
Walter Roberson 2018-7-24
fft() on a 2D matrix is the same as
result = zeros(size(YourMatrix));
for column = 1 : size(YourMatrix,2)
result(:,column) = fft(YourMatrix(:,column));
end
That is, it just does a column-by-column fft.
fft2() on a 2D matrix is the same as
fft( fft(YourMatrix).' ).'
That is, it does an fft by columns, transposes that so the rows become columns, fft on those columns, and transpose back

类别

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