How to compute and plot a Spectrogram?

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일

0 개 추천

Look at
help load
help plot

댓글 수: 3

adam
adam 2013년 11월 3일
Hey, so I'm still working on this. It's taking forever but I'm trying to persevere. I've calculated the spectrogram, but I'm not able to plot it. I was told to use the IMAGESC command, but there is not much help when doing help imagesc so I was wondering if you had any more advice?
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일

0 개 추천

try to use help, like abdelmalek answered, or use the function directly :
>>spectrogram(randn(200,1)); % white noise

카테고리

도움말 센터File Exchange에서 Time-Frequency Analysis에 대해 자세히 알아보기

질문:

2013년 9월 16일

댓글:

2013년 11월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by