Logarithmic scale using PSD function
Mostrar comentarios más antiguos
I have a problem using the PSD function - basically the output of my code gives the frequency in a linear scale, when i need it in a logarithmic scale. Does anyone know how to alter the PSD/output to give the resulting plot in a logarithmic scale? cl is an array of values. I assume it is something very basic i need to change.
My code is as follows:
Fs = 1/0.005;
h = spectrum.welch;
Hpsd = psd(h,cl,'Fs',Fs);
plot(Hpsd)
Respuesta aceptada
Más respuestas (2)
the cyclist
el 3 de Mzo. de 2011
0 votos
Guessing you need the semilogx, semilogy, or loglog command.
Graeme
el 3 de Mzo. de 2011
Categorías
Más información sobre Spectral Estimation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!