fft with frequency axis on log scale

61 visualizaciones (últimos 30 días)
Baba
Baba el 1 de Nov. de 2011
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))

Respuesta aceptada

Wayne King
Wayne King el 1 de Nov. de 2011
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 comentario
Baba
Baba el 1 de Nov. de 2011
are the units of the Y axis db/Hz?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Fourier Analysis and Filtering en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by