资源描述:
《哈工程数字信号处理实验报告8》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、数字信号处理实验实验八:音频频谱分析仪设计与实现班级:20130831姓名:王彦臣学号:2013064122指导老师:栾晓明2010年11月二.实验内容functionvarargout=untitled(varargin)gui_Singleton=1;gui_State=struct('gui_Name',mfilename,...'gui_Singleton',gui_Singleton,...'gui_OpeningFcn',@untitled_OpeningFcn,...'gui_OutputFcn',@untitled_OutputFcn,
2、...'gui_LayoutFcn',[],...'gui_Callback',[]);ifnargin&&ischar(varargin{1})gui_State.gui_Callback=str2func(varargin{1});endifnargout[varargout{1:nargout}]=gui_mainfcn(gui_State,varargin{:});elsegui_mainfcn(gui_State,varargin{:});endfunctionuntitled_OpeningFcn(hObject,eventdata,han
3、dles,varargin)handles.inputtype=0;xlabel(handles.plot1,'freqency(Hz)');xlabel(handles.plot2,'freqency(Hz)');xlabel(handles.plot3,'freqency(Hz)');xlabel(handles.plot4,'freqency(Hz)');xlabel(handles.plot5,'freqency(Hz)');ylabel(handles.plot1,'amplitude');ylabel(handles.plot2,'phas
4、e(rad)');ylabel(handles.plot3,'real');ylabel(handles.plot4,'Imaginary');ylabel(handles.plot5,'power');handles.output=hObject;guidata(hObject,handles);functionvarargout=untitled_OutputFcn(hObject,eventdata,handles)varargout{1}=handles.output;functionsampledpoint_Callback(hObject,
5、eventdata,handles)functionsampledpoint_CreateFcn(hObject,eventdata,handles)ifispcset(hObject,'BackgroundColor','white');elseset(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunctionedit1_CreateFcn(hObject,eventdata,handles)functionedit2_CreateFcn(hObjec
6、t,eventdata,handles)functionfs_Callback(hObject,eventdata,handles)functionfs_CreateFcn(hObject,eventdata,handles)ifispcset(hObject,'BackgroundColor','white');elseset(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunctionsoundcard_Callback(hObject,eventda
7、ta,handles)set(findobj('Tag','recordtime'),'enable','on');h=findobj('Tag','filename');set(h,'enable','off');h=findobj('Tag','freq');set(h,'enable','off');h=findobj('Tag','amp');set(h,'enable','off');h=findobj('Tag','phase');set(h,'enable','off');set(handles.channel,'enable','off
8、');set(handles.fileopen,'enable','off');set(han