
[y,Fs] = wavread('handel.wav'); % read in wav file
plot(y); % plot in figure
p = audioplayer(y, Fs); % creat audioplayer

[n m] = size(y);

play(p, [1 n]); % play audio
y(1:10)  % list first elements