How to convert the x an y axis to frequency in plotting 2D FFT?
4 次查看(过去 30 天)
显示 更早的评论
In case of 1D FFT,plot (abs(fft(X)) displays the frequency bin number on x axis and can be converted into frequency by multiplying by (fs/N). How can I convert the x and y axes values to frequency in case of 2D FFT? I have raw data in a matrix form (1024 rows *8 columns).I am plotting 2D FFT using the fft2 function.How can I convert the x and y axes to frequency?
0 个评论
回答(1 个)
David Goodmanson
2017-1-5
编辑:David Goodmanson
2017-1-5
Hi Poorva, If what you are ffting is truly a 2d time array, then there will be a sampling frequency for each direction. In that case calculation for each independent frequency axis is the same as what you did before:
fy = ny*fsy/Ny fx = nx*fsx/Nx
where ny,nx are bin numbers. If this were not exactly a 2d time-by-time array, there are other possibilities.
2 个评论
David Goodmanson
2017-1-6
编辑:David Goodmanson
2017-1-6
Hi Poorva, I am not sure what doing an fft of the sweeps will achieve, but having no background in any of that there is probably nothing I could say that would be useful. Good luck in your task.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spectral Measurements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!