【正文】
fter.function after_Callback(hObject, eventdata, handles)% hObject handle to after (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)[x,fs,bits]=wavread(39。39。,[500 50000])。%[x,fs,bits]=wavread(39。39。,50000)。x=x(:,1)。sound(x,fs)。n1=0:2000。N=size(x,1)。axes()。 %subplot(2,1,1)。plot(x)。title(39。采樣后語音信號時域波形39。,39。fontname39。,39。宋體39。)。Y=fft(x,2001)。axes()。%subplot(2,1,2)。plot(n1(1:1000),Y(1:1000))。title(39。采樣后語音信號頻譜圖39。,39。fontname39。,39。宋體39。)。 % Executes on button press in delay.function delay_Callback(hObject, eventdata, handles)% hObject handle to delay (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)[x,fs,bits]=wavread(39。39。,[500 50000])。%[x,fs,bits]=wavread(39。39。,50000)。x=x(:,1)。%sound(x,fs)。n1=0:2000。N=size(x,1)。z=[zeros(100,1)。x]。axes()。%subplot(2,1,1)。plot(z)。title(39。延時后的時域圖39。,39。fontname39。,39。宋體39。)。Z=fft(z,2001)。axes()。%subplot(2,1,2)。plot(n1(1:1000),Z(1:1000))。title(39。延時后的頻譜圖 39。,39。fontname39。,39。宋體39。)。sound(z,fs)。 % Executes on button press in mix.function mix_Callback(hObject, eventdata, handles)% hObject handle to mix (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)[x,fs,bits]=wavread(39。39。,[500 50000])。%[x,fs,bits]=wavread(39。39。,50000)。x=x(:,1)。sound(x,fs)。n1=0:2000。N=size(x,1)。k=[x。zeros(100,1)]。z=[zeros(100,1)。x]。y1=k+z。axes()。%figure(3)。%subplot(2,1,1)。plot(y1)。title(39?;祉懙臅r域圖39。,39。fontname39。,39。宋體39。)。Y1=fft(y1,2001)。axes()。%subplot(2,1,2)。plot(n1(1:1000),Y1(1:1000))。title(39。混響的頻譜圖39。,39。fontname39。,39。宋體39。)。sound(y1,fs)。% Executes during object creation, after setting all properties.function axes15_CreateF(hObject, eventdata, handles)% hObject handle to axes15 (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles empty handles not created until after all CreateFs called % Hint: place code in OpeningF to populate axes15 % Executes on mouse press over axes background.function axes18_ButtonDownF(hObject, eventdata, handles)% hObject handle to axes18 (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) % Executes on mouse press over axes background.function axes1_ButtonDownF(hObject, eventdata, handles)% hObject handle to axes1 (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) % Executes on key press with focus on mix and none of its controls.function mix_KeyPressF(hObject, eventdata, handles)% hObject handle to mix (see GCBO)% eventdata structure with the following fields (see UICONTROL)% Key: name of the key that was pressed, in lower case% Character: character interpretation of the key(s) that was pressed% Modifier: name(s) of the modifier key(s) (., control, shift) pressed% handles structure with handles and user data (see GUIDATA) % If Enable == 39。on39。, executes on mouse press in 5 pixel border.% Otherwise, executes on mouse press in 5 pixel border or over only.function only_ButtonDownF(hObject, eventdata, handles)% hObject handle to only (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUID