Matlab function to calculate a power spectral density or power spectrum over a logarithmically-spaced frequency axis.