realtime spectrogram
이전 댓글 표시
Hello, I am trying to read in using analoginput, then what i want to do is display the spectrogram in real-time. i managed to do this using audiorecorder, but it wasn`t every smooth, it wouldn`t continuously display the spectrogram.
i did this; in= analoginput('winsound'); chan = addchannel(in,[1 2]);
% Now i have the input.
a=0
while a<100
start(in);
data=getdata(in);
specgram(data(:),512);
a=a+1;
end
but the spectrogram is so bad, (quality wise), and it doesn`t continuously change, can anyone show me how to do this (please)
I want the spectrogram to scroll from right to left, in real time. Please help.
댓글 수: 1
Walter Roberson
2011년 7월 16일
Please do not post duplicate questions (referring to the duplicate I already deleted.) You can edit your existing question if you want to add more information.
답변 (1개)
Walter Roberson
2011년 7월 16일
0 개 추천
Only do the start(in) once, before the loop.
댓글 수: 4
rave
2011년 7월 16일
rave
2011년 7월 16일
Walter Roberson
2011년 7월 16일
See http://www.mathworks.com/matlabcentral/fileexchange/18596-real-time-microphone-and-camera-data-acquisition-and-audio-video-processing/content/Documentation.html
rave
2011년 7월 16일
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!