fft with frequency axis on log scale

35 次查看(过去 30 天)
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;

更多回答(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