I would like to play an audio file Meanwhile plotting and updating a diagram. However, my audio file is interrupted. I would like to play audio file smoothly in background and update the figure at the same time.
for i=1:10
player = audioplayer(audio, Fs);
play(player);
scatter(x(i),y(i),'r.')
end