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!