필터 지우기
필터 지우기

How to convert the x an y axis to frequency in plotting 2D FFT?

조회 수: 4 (최근 30일)
Poorva Limaye
Poorva Limaye 2017년 1월 4일
편집: David Goodmanson 2017년 1월 6일
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?

답변 (1개)

David Goodmanson
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
Poorva Limaye
Poorva Limaye 2017년 1월 5일
편집: Poorva Limaye 2017년 1월 5일
@David : The array represents the values of FMCW wave in radar where each column represents 1 sweep and has 1024 rows that gives the data in each sweep. x axis=number of sweeps=8
David Goodmanson
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 CenterFile Exchange에서 Spectral Measurements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by