资源描述:
《基于matlab gui语音信号的采集分析系统》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、.基于MATLAB GUI的语音信号采集分析系统前一阵子用MATLAB GUI做了一个语音信号采集与分析的界面。功能包括录音、播放、时域、频域分析吧。也导入本地文件进行分析。效果如下:源码如下:functionvarargout=GUI_1(varargin)%GUI_1MATLABcodeforGUI_1.fig%GUI_1,byitself,createsanewGUI_1orraisestheexisting%singleton*.%%H=GUI_1returnsthehandletoanewGUI_1ort
2、hehandleto%theexistingsingleton*.%%GUI_1('CALLBACK',hObject,eventData,handles,...)callsthelocal%functionnamedCALLBACKinGUI_1.Mwiththegiveninputarguments.%%GUI_1('Property','Value',...)createsanewGUI_1orraisesthe%existingsingleton*.Startingfromtheleft,propertyv
3、aluepairsare%appliedtotheGUIbeforeGUI_1_OpeningFcngetscalled.An%unrecognizedpropertynameorinvalidvaluemakespropertyapplication%stop.AllinputsarepassedtoGUI_1_OpeningFcnviavarargin.%%*SeeGUIOptionsonGUIDE'sToolsmenu.Choose"GUIallowsonlyone%instancetorun(singlet
4、on)".%...%Seealso:GUIDE,GUIDATA,GUIHANDLES%EdittheabovetexttomodifytheresponsetohelpGUI_1%LastModifiedbyGUIDEv2.525-May-201520:52:27%Begininitializationcode-DONOTEDITgui_Singleton=1;gui_State=struct('gui_Name',mfilename,...'gui_Singleton',gui_Singleton,...'gui
5、_OpeningFcn',@GUI_1_OpeningFcn,...'gui_OutputFcn',@GUI_1_OutputFcn,...'gui_LayoutFcn',[],...'gui_Callback',[]);ifnargin&&ischar(varargin{1})gui_State.gui_Callback=str2func(varargin{1});endifnargout[varargout{1:nargout}]=gui_mainfcn(gui_State,varargin{:});elseg
6、ui_mainfcn(gui_State,varargin{:});end%Endinitializationcode-DONOTEDIT%---ExecutesjustbeforeGUI_1ismadevisible.functionGUI_1_OpeningFcn(hObject,~,handles,varargin)%Thisfunctionhasnooutputargs,seeOutputFcn.%hObjecthandletofigure%eventdatareserved-tobedefinedinaf
7、utureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%varargincommandlineargumentstoGUI_1(seeVARARGIN)%ChoosedefaultcommandlineoutputforGUI_1set(handles.axes_t_m,'visible','off');set(handles.axes_fft_m,'visible','off');set(handles.axes_t_w,'v
8、isible','off');set(handles.axes_fft_w,'visible','off');globallocal_yn;local_yn=0;%a=imread('yanda.jpg');%axes(handles.axes_t_m)%image(a);...handles.output=hObject;%Updatehandlesstr