clear all; close all; filename='portique_bas.wav'; % read the sound sample and plot the frequency diagram info=audioinfo(filename); [y,Fs] = audioread(filename); if info.NumChannels==2 % stereo case y=y(:,1); end % figure : sound sample subplot(1,2,1); t=[0:length(y)-1]/Fs; plot(t,y); title('Original sound signal'); xlabel('Time (s)') % select the region of interest t_min=input('Beginning time ?'); hold on ; line([t_min t_min],[min(y) max(y)],'color','r') t_max=input('Finishing time ?'); hold on ; line([t_max t_max],[min(y) max(y)],'color','r') y(find(t>t_max))=[];y(find(tmax(freq_range)))=[]; py(find(fmax(freq_range)))=[]; f(find(f