 <p>you could use the audioplayer for playback instead of sound. So</p> <pre><code>player = audioplayer(signal, Fs); </code></pre> <p>Player is the the audioplayer object (check MATLAB help on audioplayer) which you can play using</p> <pre><code>play(player); </code></pre> <p>While the sound is playing you can do whatever you want. For example there is a CurrentSample property which shows you the sample played at the moment. You can get it</p> <pre><code>c_sample = get(player,'CurrentSample'); </code></pre> <p>and use it for your plotting purposes.</p>