【正文】
39。)。enable39。on39。 h=findobj(39。,39。)。enable39。on39。 h=findobj(39。,39。)。enable39。off39。 h=findobj(39。,39。)。enable39。off39。 h=findobj(39。,39。)。enable39。off39。 h=findobj(39。,39。)。enable39。off39。 h=findobj(39。,39。)。enable39。off39。 h=findobj(39。,39。)。enable39。off39。 function xinhaofasheng_Callback(hObject, eventdata, handles) set(,39。,0)。value39。 set(,39。,1)。Tag39。recordtime39。 set(h,39。,39。)。Tag39。kaishiluyin39。 set(h,39。,39。)。Tag39。wavname39。 set(h,39。,39。)。Tag39。liulan39。 set(h,39。,39。)。Tag39。inwave39。 set(h,39。,39。)。Tag39。infudu39。 set(h,39。,39。)。Tag39。infre39。 set(h,39。,39。)。Tag39。inphase39。 set(h,39。,39。)。Tag39。mix39。 set(h,39。,39。)。Tag39。shengchengboxing39。 set(h,39。,39。)。amp。BackgroundColor39。defaultUicontrolBackgroundColor39。BackgroundColor39。white39。 end function kaishiluyin_Callback(hObject, eventdata, handles) Fs=str2double(get(,39。))。String39。 =wavrecord(N, Fs,39。)。 guidata(hObject,handles)。 ysize=size()。String39。 function wavname_CreateF(hObject, eventdata, handles) if ispc amp。 isequal(get(hObject,39。), get(0,39。)) set(hObject,39。,39。)。*.wav39。wavfile39。 set(,39。,filename)。 =2。 plot(,(1:length()/10)/Fs,(1:length()/10))。 set(,39。,num2str(ysize(1)))。string39。 function listbox2_CreateF(hObject, eventdata, handles) if ispc amp。 isequal(get(hObject,39。), get(0,39。)) set(hObject,39。,39。)。amp。BackgroundColor39。defaultUicontrolBackgroundColor39。BackgroundColor39。white39。 end function infudu_CreateF(hObject, eventdata, handles) if ispc amp。 isequal(get(hObject,39。), get(0,39。)) set(hObject,39。,39。)。amp。BackgroundColor39。defaultUicontrolBackgroundColor39。BackgroundColor39。white39。 end function inphase_CreateF(hObject, eventdata, handles) if ispc amp。 isequal(get(hObject,39。), get(0,39。)) set(hObject,39。,39。)。Tag39。caiyangpinlv39。String39。 N=str2double(get(findobj(39。,39。),39。))。 soundtype=get(,39。)。String39。 amp=str2double(get(,39。))。String39。 switch soundtype case 1 y=amp*sin(2*pi*x*frequency+phase)。 case 2 y=amp*sign(sin(2*pi*x*frequency+phase))。 case 3 y=amp*sawtooth(2*pi*x*frequency+phase,)。 case 4 y=amp*sawtooth(2*pi*x*frequency+phase)。 case 5 y=amp*(2*rand(size(x))1)。 end if get(,39。)== =y。 end guidata(hObject,handles)。 title(39。)。String39。String39。 function edit11_CreateF(hObject, eventdata, handles) if ispc amp。 isequal(get(hObject,39。), get(0,39。)) set(hObject,39。,39。)。amp。BackgroundColor39。defaultUicontrolBackgroundColor39。BackgroundColor39。white39。 end function popupmenu3_CreateF(hObject, eventdata, handles) if ispc amp。 isequal(get(hObject,39。), get(0,39。)) set(hObject,39。,39。)。amp。BackgroundColor39。defaultUicontrolBackgroundColor39。BackgroundColor39。white39。 end function edit14_CreateF(hObject, eventdata, handles) if ispc amp。 isequal(get(hObject,39。), get(0,39。)) set(hObject,39。,39。)。amp。BackgroundColor39。defaultUicontrolBackgroundColor39。BackgroundColor39。white39。 end function edit9_CreateF(hObject, eventdata, handles) if ispc amp。 isequal(get(hObject,39。), get(0,39。)) set(hObject,39。,39。)。amp。BackgroundColor39。defaultUicontrolBackgroundColor39。BackgroundColor39。white39。 end function circle_CreateF(hObject, eventdata, handles) if ispc amp。 isequal(get(hObject,39。), get(0,39。)) set(hObject,39。,39。)。amp。BackgroundColor39。defaultUicontrolBackgroundColor39。BackgroundColor39。white39。 end function outamp_CreateF(hObject, eventdata, handles) if ispc amp。 isequal(get(hObject,39。), get(0,39。)) set(hObject,39。,39。)。amp。BackgroundColor39。defaultUicontrolBackgroundColor39。BackgroundColor39。white39。 end % Executes during object creation, after setting all properties. function outpeak_CreateF(hObject, eventdata, handles) % hObject handle to outpeak (see GCBO) % eventdata reserved to be defined in a future version of MATLAB % handles empty handles not created until after all CreateFs called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc amp。 isequal(get(hObject,39。), get(0,39。)) set(hObject,39。,39。)。amp。BackgroundColor39。defaultUicontrolBackgroundColor39。BackgroundColor39。white39。 end