필터 지우기
필터 지우기

fft with frequency axis on log scale

조회 수: 35 (최근 30일)
Baba
Baba 2011년 11월 1일
Hello, I have a sampled signal and I'd like to take it's fft with the x axis on log scale. Also, is there anything wrong with the way I'm doing the fft? Thanks
Here's my code
fs=2000;
Hs=spectrum.periodogram; % Use default values
plot(psd(Hs,Signal,'Fs',fs))

채택된 답변

Wayne King
Wayne King 2011년 11월 1일
Hi, You can just save the output of psd() and use semilogx
fs=2000;
Hs=spectrum.periodogram; % Use default values
psdest = psd(Hs,Signal,'Fs',fs);
semilogx(psdest.Frequencies,10*log10(psdest.Data));
grid on;
  댓글 수: 1
Baba
Baba 2011년 11월 1일
are the units of the Y axis db/Hz?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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