%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Read from a WAV file
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

[Y,FS,NBITS]=wavread('test440.wav'); % read the WAV file
plot(1:1000,Y(1:1000))               % plot the first 1000 samples 
xlabel('Sample number');
ylabel('Y');
