i am trying to make a spectrogram in matlab, here is my code:
% Record your voice for 100 seconds.
recObj = audiorecorder;
disp(\'Start speaking.\')
recordb
The most obvious thing to do is place your code in a loop to keep updating the figure. But be aware that Matlab is not really designed for this sort of task, so I don't know how much success you'll have. Have you tried Googling for free software which does this for you? I'd be surprised if there was nothing out there which didn't do this already.