How to compute and plot a Spectrogram?

13 ビュー (過去 30 日間)
adam
adam 2013 年 9 月 16 日
コメント済み: adam 2013 年 11 月 3 日
Hey I'm very new to MATLAB...like I've never used it for anything other than checking answers to my matrices homework. I'm trying to load data from two ".mat" files and use that data to compute and plot a spectrogram. Does anyone have any idea how I might be able to do that? Thank you!
I've computed the spectrogram using the command:
[y,f,t,p] = spectrogram(song_waveform, 128, 120, 256, 1E3, 'yaxis');
where "song_waveform" is the file containing the loaded data. Am I using this command right? The next step is to plot the computed spectrogram using the "IMAGESC" command. I've tried "Help IMAGESC" and didn't really get anything out of it. What do you think I should do now? Thank you for any help you can give.

回答 (2 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 9 月 16 日
Look at
help load
help plot
  3 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 11 月 3 日
For more details use
doc imagesc
%Or look at this link
You can also search on the net with keyword: matlab imagesc
adam
adam 2013 年 11 月 3 日
Is there any benefit in using "IMAGESC" versus "surf" in plotting a spectrogram?

サインインしてコメントする。


Youssef  Khmou
Youssef Khmou 2013 年 9 月 17 日
try to use help, like abdelmalek answered, or use the function directly :
>>spectrogram(randn(200,1)); % white noise

カテゴリ

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