
[Y,FS,BITS]=wavread('we'); %extracts info on wav file
pause(3);
sound(Y,FS,BITS); 	% Play Orginial wave 
plot(Y);							% Plot Y verse Samples
title('Orginial Wave Data');
xlabel('Samples n'),ylabel('Amplitude');
nsamples = length(Y)

[xcoord, ycoord] = ginput(2);
xcoord = round(xcoord);
xcoord = sort(xcoord);
IY=Z(xcoord(1):xcoord(2));
figure(7);
plot(IY);
title('IY Data');
xlabel('Samples n'),ylabel('Amplitude');
pause(3);
sound(IY, FSdec, BITS);
nIYsamples = length(IY)
