Audio Signal in Spectrogram

조회 수: 4 (최근 30일)
Lena Kaz
Lena Kaz 2017년 5월 31일
편집: Lena Kaz 2017년 5월 31일
Hello, I am new member in the community and I don't have experience in matlab. I want to produce a spectrogram for an audio file with the below characteristics: Each spectrogram matrix is composed of 333 consecutive spectrograms derived from 96 ms windows with a frame advance of 3 ms. Each spectrogram matrix has 333 frames × 257 frequency bins, one spectrogram matrix computed every 24 ms. Window size is 1-sec (frame length) with 24 ms frame advance. Can somebody help me with the spectrogram matrix?
Here is my code ('fs' is the Sample rate in hertz and 'signal' is the audio file):
x=round(0.096*fs); %samples taken over 96 msec
window=hamming(x);
noverlap=round(0.003*fs);
nfft=2^nextpow2(length(signal));
[S,f,t,P]=spectrogram(signal,window,noverlap,nfft,fs,'yaxis');

답변 (0개)

카테고리

Help CenterFile Exchange에서 Time-Frequency Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by