Spectrogram plot not filling out colours

8 ビュー (過去 30 日間)
David Colson
David Colson 2017 年 3 月 9 日
編集済み: David Colson 2017 年 3 月 9 日
I'm trying to plot a spectrogram, and I'm following the examples in the documentation, but I keep getting something that looks like this:
It's almost as though the color samples aren't filling out the plot. In the examples the spectrogram is solid colour, not with white. How can I make it work like that?
This is my code by the way:
sound = wavread('H:\Tin Whistle\Recordings Session 2\Key - G\G1.wav');
x = (sound(:, 1) + sound(:, 2))./2;
Fs = 44100;
segmentLength = round(numel(x)/4.5);
spectrogram(x,round(segmentLength/5),[],[],Fs,'yaxis')
Oh also, there's a color bar in the examples, how do I get that to display?

回答 (0 件)

カテゴリ

Help Center および File ExchangeTime-Frequency Analysis についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by