0
$\begingroup$

I have a complex signal and I'm trying to use Octave to plot a spectrogram. I found the specgram function, and it's close to what I want, but I can't figure out how to get it to display negative frequencies. Can it be done?

$\endgroup$

1 Answer 1

1
$\begingroup$

The specgram function from the signal package does not handle complex input fully and discards the negative frequency information.

However, there is a function called sgram in the ltfat package that does handle complex input properly and produces the expected -Fs/2 to Fs/2 spectrogram.

https://gnu-octave.github.io/packages/ltfat/

sgram output with default options

Today I saw a few errors installing the ltfat package on octave 8.4.0, but sgram still worked when all was said and done.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.