Matab Spectrogram Colour Axis
8 views (last 30 days)
Show older comments
Hello,
I am trying to perform audio analysis with Matlab s spectrogram. I tried with 50 msec Hamming window and 50 % overlap. on some mp3 and wav files sampled at 44 kHz. I am getting a very sparse plot in the spectrogram (ie most of the colour area is blueish) and only if I focus down to the lower most frequencies ( less than 500 Hz) I am able to see something.
So this could be due to color scaling but why is the spectrogram displayed by Matlab have such low values of amplitude at higher frequencies ? How do I set an appropriate colour range for the plot ? Because I intend to use spectrograms for my work , I would like to know if they are supposed to apear this way or not.
0 Comments
Answers (1)
Daniel Shub
on 27 Mar 2012
It is probably not a color range issue. Rather, it sounds like your audio signal has a "pink" (1/f) spectrum where there is more power, for a given bandwidth at low frequencies than at high frequencies. You could smooth the spectrogram with a filter that changes bandwidth with frequency (think log/octave bin widths), but this is a pain.
2 Comments
Daniel Shub
on 27 Mar 2012
Presumably you are not going to extract the features from the visual representation, so the color axis should not matter. As for what is the right domain to look for features in, there is a whole literature on that.
See Also
Categories
Find more on Time-Frequency Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!