www.gusucode.com > 声音的处理有:LPC,FFT,共振峰,频谱源码程序 > siganlandsystemusingMatlab/SSUM/speech/dtw/dtwexpogui.m
function varargout = dtwexpogui(varargin) % DTWEXPOGUI M-file for dtwexpogui.fig % DTWEXPOGUI, by itself, creates a new DTWEXPOGUI or raises the existing % singleton*. % % H = DTWEXPOGUI returns the handle to a new DTWEXPOGUI or the handle to % the existing singleton*. % % DTWEXPOGUI('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in DTWEXPOGUI.M with the given input arguments. % % DTWEXPOGUI('Property','Value',...) creates a new DTWEXPOGUI or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before dtwexpogui_OpeningFunction gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to dtwexpogui_OpeningFcn via varargin. % % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one % instance to run (singleton)". % % See also: GUIDE, GUIDATA, GUIHANDLES % Edit the above text to modify the response to help dtwexpogui % Last Modified by GUIDE v2.5 31-Mar-2005 10:08:21 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @dtwexpogui_OpeningFcn, ... 'gui_OutputFcn', @dtwexpogui_OutputFcn, ... 'gui_LayoutFcn', @dtwexpogui_LayoutFcn, ... 'gui_Callback', []); if nargin & isstr(varargin{1}) gui_State.gui_Callback = str2func(varargin{1}); end if nargout [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); else gui_mainfcn(gui_State, varargin{:}); end % End initialization code - DO NOT EDIT % --- Executes just before dtwexpogui is made visible. function dtwexpogui_OpeningFcn(hObject, eventdata, handles, varargin) % This function has no output args, see OutputFcn. % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % varargin command line arguments to dtwexpogui (see VARARGIN) % Choose default command line output for dtwexpogui handles.output = hObject; guidata(hObject, handles); set(gcf,'UserData',handles); dtwexpofn; if (nargin > 3) datastruct = varargin{1}; dtwexpofn('readinput',datastruct); end % --- Outputs from this function are returned to the command line. function varargout = dtwexpogui_OutputFcn(hObject, eventdata, handles) varargout{1} = handles.output; % -------------------------------------------------------------------- function FileMenu_Callback(hObject, eventdata, handles) % -------------------------------------------------------------------- function PrintMenuItem_Callback(hObject, eventdata, handles) dtwexpofn 'print'; % -------------------------------------------------------------------- function CloseMenuItem_Callback(hObject, eventdata, handles) dtwexpofn 'close'; % --- Executes on button press in print. function print_Callback(hObject, eventdata, handles) dtwexpofn 'print'; % -------------------------------------------------------------------- function Untitled_1_Callback(hObject, eventdata, handles) % hObject handle to Untitled_1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % -------------------------------------------------------------------- function fourier_Callback(hObject, eventdata, handles) % hObject handle to fourier (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) dtwexpofn 'fourier'; % -------------------------------------------------------------------- function alias_Callback(hObject, eventdata, handles) % hObject handle to alias (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) dtwexpofn 'alias'; % -------------------------------------------------------------------- function help_Callback(hObject, eventdata, handles) % hObject handle to help (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) dtwexpofn 'help'; % -------------------------------------------------------------------- function feature_Callback(hObject, eventdata, handles) % hObject handle to feature (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) dtwexpofn 'feature'; % -------------------------------------------------------------------- function formantexpo_Callback(hObject, eventdata, handles) % hObject handle to formantexpo (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) dtwexpofn 'formantexpo'; % -------------------------------------------------------------------- function lpcexpo_Callback(hObject, eventdata, handles) % hObject handle to lpcexpo (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) dtwexpofn 'lpcexpo'; % --- Executes when dtwexpogui_fig window is resized. function dtwexpogui_fig_ResizeFcn(hObject, eventdata, handles) % hObject handle to dtwexpogui_fig (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) dtwexpofn 'resize'; % --- Executes on button press in play_ref. function play_ref_Callback(hObject, eventdata, handles) % hObject handle to play_ref (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) dtwexpofn('play','ref'); % --- Executes on button press in play_test. function play_test_Callback(hObject, eventdata, handles) % hObject handle to play_test (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) dtwexpofn('play','test'); % --- Executes on button press in load_ref. function load_ref_Callback(hObject, eventdata, handles) % hObject handle to load_ref (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) dtwexpofn('load','ref'); % -------------------------------------------------------------------- function Untitled_3_Callback(hObject, eventdata, handles) % hObject handle to Untitled_3 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % -------------------------------------------------------------------- function load_test_Callback(hObject, eventdata, handles) % hObject handle to load_test (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) dtwexpofn('load','test'); % --- Executes on selection change in datatype. function datatype_Callback(hObject, eventdata, handles) % hObject handle to datatype (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: contents = get(hObject,'String') returns datatype contents as cell array % contents{get(hObject,'Value')} returns selected item from datatype dtwexpofn 'updateDTWPlot'; % --- Executes during object creation, after setting all properties. function datatype_CreateFcn(hObject, eventdata, handles) % hObject handle to datatype (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: popupmenu controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end function testinfo_Callback(hObject, eventdata, handles) % hObject handle to testinfo (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of testinfo as text % str2double(get(hObject,'String')) returns contents of testinfo as a double set(hObject,'Enable','inactive'); % --- Executes during object creation, after setting all properties. function testinfo_CreateFcn(hObject, eventdata, handles) % hObject handle to testinfo (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end function refinfo_Callback(hObject, eventdata, handles) % hObject handle to refinfo (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of refinfo as text % str2double(get(hObject,'String')) returns contents of refinfo as a double set(hObject,'Enable','inactive'); % --- Executes during object creation, after setting all properties. function refinfo_CreateFcn(hObject, eventdata, handles) % hObject handle to refinfo (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end function windowsize_Callback(hObject, eventdata, handles) % hObject handle to windowsize (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of windowsize as text % str2double(get(hObject,'String')) returns contents of windowsize as a double val = abs(str2num(get(hObject,'String'))); set(hObject,'String',num2str(val)); dtwexpofn 'analysischange'; % --- Executes during object creation, after setting all properties. function windowsize_CreateFcn(hObject, eventdata, handles) % hObject handle to windowsize (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end function windowskip_Callback(hObject, eventdata, handles) % hObject handle to windowskip (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of windowskip as text % str2double(get(hObject,'String')) returns contents of windowskip as a double val = abs(str2num(get(hObject,'String'))); set(hObject,'String',num2str(val)); dtwexpofn 'analysischange'; % --- Executes during object creation, after setting all properties. function windowskip_CreateFcn(hObject, eventdata, handles) % hObject handle to windowskip (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end % --- Executes on selection change in policymenu. function policymenu_Callback(hObject, eventdata, handles) % hObject handle to policymenu (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: contents = get(hObject,'String') returns policymenu contents as cell array % contents{get(hObject,'Value')} returns selected item from policymenu dtwexpofn 'policy'; % --- Executes during object creation, after setting all properties. function policymenu_CreateFcn(hObject, eventdata, handles) % hObject handle to policymenu (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: popupmenu controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end % --- Executes on button press in grid. function grid_Callback(hObject, eventdata, handles) % hObject handle to grid (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hint: get(hObject,'Value') returns toggle state of grid dtwexpofn 'updateDTWPlot'; % --- Executes on button press in contours. function contours_Callback(hObject, eventdata, handles) % hObject handle to contours (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hint: get(hObject,'Value') returns toggle state of contours dtwexpofn 'updateDTWPlot'; % --- Executes on button press in optpath. function optpath_Callback(hObject, eventdata, handles) % hObject handle to optpath (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hint: get(hObject,'Value') returns toggle state of optpath dtwexpofn 'updateDTWPlot'; % --- Executes on button press in show_distances. function show_distances_Callback(hObject, eventdata, handles) % hObject handle to show_distances (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) dtwexpofn 'show_distances'; % --- Executes on button press in analyze. function analyze_Callback(hObject, eventdata, handles) % hObject handle to analyze (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) dtwexpofn 'analyze'; % --- Executes on button press in search. function search_Callback(hObject, eventdata, handles) % hObject handle to search (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hint: get(hObject,'Value') returns toggle state of search dtwexpofn 'updateDTWPlot'; % --- Creates and returns a handle to the GUI figure. function h1 = dtwexpogui_LayoutFcn(policy) % policy - create a new figure or use a singleton. 'new' or 'reuse'. persistent hsingleton; if strcmpi(policy, 'reuse') & ishandle(hsingleton) h1 = hsingleton; return; end appdata = []; appdata.GUIDEOptions = struct(... 'active_h', [], ... 'taginfo', struct(... 'figure', 2, ... 'axes', 7, ... 'pushbutton', 22, ... 'popupmenu', 11, ... 'listbox', 2, ... 'text', 31, ... 'slider', 3, ... 'checkbox', 8, ... 'radiobutton', 5, ... 'edit', 11, ... 'uipanel', 3), ... 'override', 1, ... 'release', 13, ... 'resize', 'simple', ... 'accessibility', 'callback', ... 'mfile', 1, ... 'callbacks', 1, ... 'singleton', 1, ... 'syscolorfig', 1, ... 'lastSavedFile', '/Users/bobsturm/SSUM/speech/dtw/dtwexpogui.m', ... 'blocking', 0); appdata.lastValidTag = 'dtwexpo_fig'; appdata.GUIDELayoutEditor = []; h1 = figure(... 'Units','characters',... 'Color',[0.701960784313725 0.701960784313725 0.701960784313725],... 'Colormap',[0 0 0.5625;0 0 0.625;0 0 0.6875;0 0 0.75;0 0 0.8125;0 0 0.875;0 0 0.9375;0 0 1;0 0.0625 1;0 0.125 1;0 0.1875 1;0 0.25 1;0 0.3125 1;0 0.375 1;0 0.4375 1;0 0.5 1;0 0.5625 1;0 0.625 1;0 0.6875 1;0 0.75 1;0 0.8125 1;0 0.875 1;0 0.9375 1;0 1 1;0.0625 1 1;0.125 1 0.9375;0.1875 1 0.875;0.25 1 0.8125;0.3125 1 0.75;0.375 1 0.6875;0.4375 1 0.625;0.5 1 0.5625;0.5625 1 0.5;0.625 1 0.4375;0.6875 1 0.375;0.75 1 0.3125;0.8125 1 0.25;0.875 1 0.1875;0.9375 1 0.125;1 1 0.0625;1 1 0;1 0.9375 0;1 0.875 0;1 0.8125 0;1 0.75 0;1 0.6875 0;1 0.625 0;1 0.5625 0;1 0.5 0;1 0.4375 0;1 0.375 0;1 0.3125 0;1 0.25 0;1 0.1875 0;1 0.125 0;1 0.0625 0;1 0 0;0.9375 0 0;0.875 0 0;0.8125 0 0;0.75 0 0;0.6875 0 0;0.625 0 0;0.5625 0 0],... 'DockControls','off',... 'IntegerHandle','off',... 'InvertHardcopy',get(0,'defaultfigureInvertHardcopy'),... 'MenuBar','none',... 'Name','Dynamic Time Warping Explorer',... 'NumberTitle','off',... 'PaperOrientation','landscape',... 'PaperPosition',get(0,'defaultfigurePaperPosition'),... 'PaperSize',[11 8.5],... 'Pointer','crosshair',... 'Position',[1 7.51923076923076 114.333333333333 55],... 'Renderer',get(0,'defaultfigureRenderer'),... 'RendererMode','manual',... 'HandleVisibility','callback',... 'Tag','dtwexpo_fig',... 'UserData',[],... 'Behavior',get(0,'defaultfigureBehavior'),... 'Visible','on',... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'FileMenu'; h2 = uimenu(... 'Parent',h1,... 'Callback','dtwexpogui(''FileMenu_Callback'',gcbo,[],guidata(gcbo))',... 'Label','File',... 'Tag','FileMenu',... 'Behavior',get(0,'defaultuimenuBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'load_test'; h3 = uimenu(... 'Parent',h2,... 'Callback','dtwexpogui(''load_test_Callback'',gcbo,[],guidata(gcbo))',... 'Label','Load Test',... 'Tag','load_test',... 'Behavior',get(0,'defaultuimenuBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'load_ref'; h4 = uimenu(... 'Parent',h2,... 'Callback','dtwexpogui(''load_ref_Callback'',gcbo,[],guidata(gcbo))',... 'Label','Load Reference',... 'Tag','load_ref',... 'Behavior',get(0,'defaultuimenuBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'CloseMenuItem'; h5 = uimenu(... 'Parent',h2,... 'Callback','dtwexpogui(''CloseMenuItem_Callback'',gcbo,[],guidata(gcbo))',... 'Label','Close',... 'Separator','on',... 'Tag','CloseMenuItem',... 'Behavior',get(0,'defaultuimenuBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'timeplot_test'; h6 = axes(... 'Parent',h1,... 'Position',[0.239890587833043 0.263504611330698 0.743440233236152 0.167325428194993],... 'ALim',get(0,'defaultaxesALim'),... 'ALimMode','manual',... 'CameraPosition',[0.5 0.5 9.16025403784439],... 'CameraPositionMode','manual',... 'CameraTarget',[0.5 0.5 0.5],... 'CameraTargetMode','manual',... 'CameraUpVector',[0 1 0],... 'CameraUpVectorMode','manual',... 'CameraViewAngle',6.60861036031192,... 'CameraViewAngleMode','manual',... 'CLim',get(0,'defaultaxesCLim'),... 'CLimMode','manual',... 'Color',get(0,'defaultaxesColor'),... 'ColorOrder',get(0,'defaultaxesColorOrder'),... 'DataAspectRatio',get(0,'defaultaxesDataAspectRatio'),... 'DataAspectRatioMode','manual',... 'DrawMode','fast',... 'LooseInset',[0.187118895834623 0.28892703862661 0.136740731571455 0.196995708154507],... 'PlotBoxAspectRatio',get(0,'defaultaxesPlotBoxAspectRatio'),... 'PlotBoxAspectRatioMode','manual',... 'TickDir',get(0,'defaultaxesTickDir'),... 'TickDirMode','manual',... 'XColor',get(0,'defaultaxesXColor'),... 'XLim',get(0,'defaultaxesXLim'),... 'XLimMode','manual',... 'XTick',[0 0.2 0.4 0.6 0.8 1],... 'XTickLabel',{ '0 '; '0.2'; '0.4'; '0.6'; '0.8'; '1 ' },... 'XTickLabelMode','manual',... 'XTickMode','manual',... 'YColor',get(0,'defaultaxesYColor'),... 'YLim',get(0,'defaultaxesYLim'),... 'YLimMode','manual',... 'YTick',[0 0.2 0.4 0.6 0.8 1],... 'YTickLabel',{ '0 '; '0.2'; '0.4'; '0.6'; '0.8'; '1 ' },... 'YTickLabelMode','manual',... 'YTickMode','manual',... 'ZColor',get(0,'defaultaxesZColor'),... 'ZLim',get(0,'defaultaxesZLim'),... 'ZLimMode','manual',... 'ZTick',[0 0.5 1],... 'ZTickLabel','',... 'ZTickLabelMode','manual',... 'ZTickMode','manual',... 'Tag','timeplot_test',... 'UserData',[],... 'Behavior',get(0,'defaultaxesBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); h7 = get(h6,'title'); set(h7,... 'Parent',h6,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','center',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[0.495454545454546 1.04090909090909 1.00005459937205],... 'Rotation',0,... 'String','',... 'Interpreter','tex',... 'VerticalAlignment','bottom',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey','',... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag','',... 'UserData',[],... 'Behavior',struct(),... 'Visible','on',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'Clipping','off'); h8 = get(h6,'xlabel'); set(h8,... 'Parent',h6,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','center',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[0.495454545454546 -0.186363636363637 1.00005459937205],... 'Rotation',0,... 'String','',... 'Interpreter','tex',... 'VerticalAlignment','cap',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey','',... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag','',... 'UserData',[],... 'Behavior',struct(),... 'Visible','on',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'Clipping','off'); h9 = get(h6,'ylabel'); set(h9,... 'Parent',h6,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','center',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[-0.213636363636363 0.486363636363636 1.00005459937205],... 'Rotation',90,... 'String','',... 'Interpreter','tex',... 'VerticalAlignment','bottom',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey','',... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag','',... 'UserData',[],... 'Behavior',struct(),... 'Visible','on',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'Clipping','off'); h10 = get(h6,'zlabel'); set(h10,... 'Parent',h6,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','right',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[-3.32272727272727 4.40454545454545 1.00005459937205],... 'Rotation',0,... 'String','',... 'Interpreter','tex',... 'VerticalAlignment','middle',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey','',... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag','',... 'UserData',[],... 'Behavior',struct(),... 'Visible','off',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'Clipping','off'); appdata = []; appdata.lastValidTag = 'dtwplot'; h11 = axes(... 'Parent',h1,... 'Position',[0.239890587833043 0.436100131752306 0.743440233236152 0.549407114624506],... 'ALim',get(0,'defaultaxesALim'),... 'ALimMode','manual',... 'CameraPosition',[0.5 0.5 9.16025403784439],... 'CameraPositionMode','manual',... 'CameraTarget',[0.5 0.5 0.5],... 'CameraTargetMode','manual',... 'CameraUpVector',[0 1 0],... 'CameraUpVectorMode','manual',... 'CameraViewAngle',6.60861036031192,... 'CameraViewAngleMode','manual',... 'CLim',get(0,'defaultaxesCLim'),... 'CLimMode','manual',... 'Color',get(0,'defaultaxesColor'),... 'ColorOrder',get(0,'defaultaxesColorOrder'),... 'DataAspectRatio',get(0,'defaultaxesDataAspectRatio'),... 'DataAspectRatioMode','manual',... 'LooseInset',[0.187118895834623 0.142325581395349 0.136740731571455 0.0970401691331925],... 'PlotBoxAspectRatio',get(0,'defaultaxesPlotBoxAspectRatio'),... 'PlotBoxAspectRatioMode','manual',... 'TickDir',get(0,'defaultaxesTickDir'),... 'TickDirMode','manual',... 'XColor',get(0,'defaultaxesXColor'),... 'XLim',get(0,'defaultaxesXLim'),... 'XLimMode','manual',... 'XTick',[0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1],... 'XTickLabel',{ '0 '; '0.1'; '0.2'; '0.3'; '0.4'; '0.5'; '0.6'; '0.7'; '0.8'; '0.9'; '1 ' },... 'XTickLabelMode','manual',... 'XTickMode','manual',... 'YColor',get(0,'defaultaxesYColor'),... 'YLim',get(0,'defaultaxesYLim'),... 'YLimMode','manual',... 'YTick',[0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1],... 'YTickLabel',{ '0 '; '0.1'; '0.2'; '0.3'; '0.4'; '0.5'; '0.6'; '0.7'; '0.8'; '0.9'; '1 ' },... 'YTickLabelMode','manual',... 'YTickMode','manual',... 'ZColor',get(0,'defaultaxesZColor'),... 'ZLim',get(0,'defaultaxesZLim'),... 'ZLimMode','manual',... 'ZTick',[0 0.5 1],... 'ZTickLabel','',... 'ZTickLabelMode','manual',... 'ZTickMode','manual',... 'Tag','dtwplot',... 'UserData',[],... 'Behavior',get(0,'defaultaxesBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); h12 = get(h11,'title'); set(h12,... 'Parent',h11,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','center',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[0.498618784530387 1.01519337016575 1.00005459937205],... 'Rotation',0,... 'String','',... 'Interpreter','tex',... 'VerticalAlignment','bottom',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey','',... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag','',... 'UserData',[],... 'Behavior',struct(),... 'Visible','on',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'Clipping','off'); h13 = get(h11,'xlabel'); set(h13,... 'Parent',h11,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','center',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[0.498618784530387 -0.0538674033149171 1.00005459937205],... 'Rotation',0,... 'String','',... 'Interpreter','tex',... 'VerticalAlignment','cap',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey','',... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag','',... 'UserData',[],... 'Behavior',struct(),... 'Visible','on',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'Clipping','off'); h14 = get(h11,'ylabel'); set(h14,... 'Parent',h11,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','center',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[-0.0649171270718232 0.498618784530387 1.00005459937205],... 'Rotation',90,... 'String','',... 'Interpreter','tex',... 'VerticalAlignment','bottom',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey','',... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag','',... 'UserData',[],... 'Behavior',struct(),... 'Visible','on',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'Clipping','off'); h15 = get(h11,'zlabel'); set(h15,... 'Parent',h11,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','right',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[-0.661602209944751 1.02348066298343 1.00005459937205],... 'Rotation',0,... 'String','',... 'Interpreter','tex',... 'VerticalAlignment','middle',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey','',... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag','',... 'UserData',[],... 'Behavior',struct(),... 'Visible','off',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'Clipping','off'); appdata = []; appdata.lastValidTag = 'Untitled_1'; h16 = uimenu(... 'Parent',h1,... 'Callback','dtwexpogui(''Untitled_1_Callback'',gcbo,[],guidata(gcbo))',... 'Label','Send Test to ...',... 'Tag','Untitled_1',... 'Behavior',get(0,'defaultuimenuBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'alias'; h17 = uimenu(... 'Parent',h16,... 'Callback','dtwexpogui(''alias_Callback'',gcbo,[],guidata(gcbo))',... 'Label','Aliasing Explorer',... 'Tag','alias',... 'Behavior',get(0,'defaultuimenuBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'feature'; h18 = uimenu(... 'Parent',h16,... 'Callback','dtwexpogui(''feature_Callback'',gcbo,[],guidata(gcbo))',... 'Label','Feature Explorer',... 'Tag','feature',... 'Behavior',get(0,'defaultuimenuBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'firexpo'; h19 = uimenu(... 'Parent',h16,... 'Callback','dtwexpogui(''firexpo_Callback'',gcbo,[],guidata(gcbo))',... 'Label','FIR Filter Explorer',... 'Tag','firexpo',... 'Behavior',get(0,'defaultuimenuBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'formantexpo'; h20 = uimenu(... 'Parent',h16,... 'Callback','dtwexpogui(''formantexpo_Callback'',gcbo,[],guidata(gcbo))',... 'Label','Formant Explorer',... 'Tag','formantexpo',... 'Behavior',get(0,'defaultuimenuBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'fourier'; h21 = uimenu(... 'Parent',h16,... 'Callback','dtwexpogui(''fourier_Callback'',gcbo,[],guidata(gcbo))',... 'Label','Fourier Explorer',... 'Tag','fourier',... 'Behavior',get(0,'defaultuimenuBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'iirexpo'; h22 = uimenu(... 'Parent',h16,... 'Callback','dtwexpogui(''iirexpo_Callback'',gcbo,[],guidata(gcbo))',... 'Label','IIR Filter Explorer',... 'Tag','iirexpo',... 'Behavior',get(0,'defaultuimenuBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'lpcexpo'; h23 = uimenu(... 'Parent',h16,... 'Callback','dtwexpogui(''lpcexpo_Callback'',gcbo,[],guidata(gcbo))',... 'Label','LPC Explorer',... 'Tag','lpcexpo',... 'Behavior',get(0,'defaultuimenuBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'help'; h24 = uimenu(... 'Parent',h1,... 'Callback','dtwexpogui(''help_Callback'',gcbo,[],guidata(gcbo))',... 'Label','Help',... 'Tag','help',... 'Behavior',get(0,'defaultuimenuBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'timeplot_ref'; h25 = axes(... 'Parent',h1,... 'Position',[0.0661767138849775 0.436100131752306 0.166820466251714 0.549407114624506],... 'ALim',get(0,'defaultaxesALim'),... 'ALimMode','manual',... 'CameraPosition',[0.5 0.5 9.16025403784439],... 'CameraPositionMode','manual',... 'CameraTarget',[0.5 0.5 0.5],... 'CameraTargetMode','manual',... 'CameraUpVector',[0 1 0],... 'CameraUpVectorMode','manual',... 'CameraViewAngle',6.60861036031192,... 'CameraViewAngleMode','manual',... 'CLim',get(0,'defaultaxesCLim'),... 'CLimMode','manual',... 'Color',get(0,'defaultaxesColor'),... 'ColorOrder',get(0,'defaultaxesColorOrder'),... 'DataAspectRatio',get(0,'defaultaxesDataAspectRatio'),... 'DataAspectRatioMode','manual',... 'DrawMode','fast',... 'LooseInset',[0.394148936170213 0.142325581395349 0.288031914893617 0.0970401691331925],... 'PlotBoxAspectRatio',get(0,'defaultaxesPlotBoxAspectRatio'),... 'PlotBoxAspectRatioMode','manual',... 'TickDir',get(0,'defaultaxesTickDir'),... 'TickDirMode','manual',... 'XColor',get(0,'defaultaxesXColor'),... 'XLim',get(0,'defaultaxesXLim'),... 'XLimMode','manual',... 'XTick',[0 0.2 0.4 0.6 0.8 1],... 'XTickLabel',{ '0 '; '0.2'; '0.4'; '0.6'; '0.8'; '1 ' },... 'XTickLabelMode','manual',... 'XTickMode','manual',... 'YColor',get(0,'defaultaxesYColor'),... 'YLim',get(0,'defaultaxesYLim'),... 'YLimMode','manual',... 'YTick',[0 0.2 0.4 0.6 0.8 1],... 'YTickLabel',{ '0 '; '0.2'; '0.4'; '0.6'; '0.8'; '1 ' },... 'YTickLabelMode','manual',... 'YTickMode','manual',... 'ZColor',get(0,'defaultaxesZColor'),... 'ZLim',get(0,'defaultaxesZLim'),... 'ZLimMode','manual',... 'ZTick',[0 0.5 1],... 'ZTickLabel','',... 'ZTickLabelMode','manual',... 'ZTickMode','manual',... 'Tag','timeplot_ref',... 'UserData',[],... 'Behavior',get(0,'defaultaxesBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); h26 = get(h25,'title'); set(h26,... 'Parent',h25,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','center',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[0.491304347826087 1.04347826086956 1.00005459937205],... 'Rotation',0,... 'String','',... 'Interpreter','tex',... 'VerticalAlignment','bottom',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey','',... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag','',... 'UserData',[],... 'Behavior',struct(),... 'Visible','on',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'Clipping','off'); h27 = get(h25,'xlabel'); set(h27,... 'Parent',h25,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','center',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[0.491304347826087 -0.173913043478261 1.00005459937205],... 'Rotation',0,... 'String','',... 'Interpreter','tex',... 'VerticalAlignment','cap',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey','',... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag','',... 'UserData',[],... 'Behavior',struct(),... 'Visible','on',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'Clipping','off'); h28 = get(h25,'ylabel'); set(h28,... 'Parent',h25,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','center',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[-0.204347826086956 0.48695652173913 1.00005459937205],... 'Rotation',90,... 'String','',... 'Interpreter','tex',... 'VerticalAlignment','bottom',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey','',... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag','',... 'UserData',[],... 'Behavior',struct(),... 'Visible','on',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'Clipping','off'); h29 = get(h25,'zlabel'); set(h29,... 'Parent',h25,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','right',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[-0.395652173913043 2.14782608695652 1.00005459937205],... 'Rotation',0,... 'String','',... 'Interpreter','tex',... 'VerticalAlignment','middle',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey','',... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag','',... 'UserData',[],... 'Behavior',struct(),... 'Visible','off',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'Clipping','off'); appdata = []; appdata.lastValidTag = 'text18'; h30 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'HorizontalAlignment','left',... 'Position',[0.375874125874126 0.0923076923076923 0.199300699300699 0.0237762237762238],... 'String','Reference Info',... 'Style','text',... 'Tag','text18',... 'Behavior',get(0,'defaultuicontrolBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'play_ref'; h31 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'Callback','dtwexpogui(''play_ref_Callback'',gcbo,[],guidata(gcbo))',... 'Position',[7.56620428751576 22.1739130434783 5.67465321563682 1.5],... 'String','Play',... 'Tag','play_ref',... 'Behavior',get(0,'defaultuicontrolBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'uipanel1'; h32 = uipanel(... 'Parent',h1,... 'Title','Analysis',... 'Position',[0.0937503446703847 0.00263504611330698 0.26332817400064 0.235836627140975],... 'Tag','uipanel1',... 'Behavior',get(0,'defaultuipanelBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'windowsize'; h33 = uicontrol(... 'Parent',h32,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','dtwexpogui(''windowsize_Callback'',gcbo,[],guidata(gcbo))',... 'Position',[0.554794520547945 0.575163398692811 0.226027397260274 0.130718954248366],... 'String','40',... 'Style','edit',... 'CreateFcn', {@local_CreateFcn, 'dtwexpogui(''windowsize_CreateFcn'',gcbo,[],guidata(gcbo))', appdata} ,... 'Tag','windowsize',... 'Behavior',get(0,'defaultuicontrolBehavior')); appdata = []; appdata.lastValidTag = 'windowskip'; h34 = uicontrol(... 'Parent',h32,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','dtwexpogui(''windowskip_Callback'',gcbo,[],guidata(gcbo))',... 'Position',[0.554794520547945 0.418300653594771 0.226027397260274 0.130718954248366],... 'String','10',... 'Style','edit',... 'CreateFcn', {@local_CreateFcn, 'dtwexpogui(''windowskip_CreateFcn'',gcbo,[],guidata(gcbo))', appdata} ,... 'Tag','windowskip',... 'Behavior',get(0,'defaultuicontrolBehavior')); appdata = []; appdata.lastValidTag = 'text19'; h35 = uicontrol(... 'Parent',h32,... 'Units','normalized',... 'HorizontalAlignment','right',... 'Position',[0.0273972602739726 0.568627450980392 0.5 0.111111111111111],... 'String','Window Size',... 'Style','text',... 'Tag','text19',... 'Behavior',get(0,'defaultuicontrolBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'text20'; h36 = uicontrol(... 'Parent',h32,... 'Units','normalized',... 'HorizontalAlignment','right',... 'Position',[0.0273972602739726 0.411764705882353 0.5 0.111111111111111],... 'String','Window Skip',... 'Style','text',... 'Tag','text20',... 'Behavior',get(0,'defaultuicontrolBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'text21'; h37 = uicontrol(... 'Parent',h32,... 'Units','normalized',... 'HorizontalAlignment','left',... 'Position',[0.801369863013699 0.581699346405229 0.198630136986301 0.111111111111111],... 'String','(ms)',... 'Style','text',... 'Tag','text21',... 'Behavior',get(0,'defaultuicontrolBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'text23'; h38 = uicontrol(... 'Parent',h32,... 'Units','normalized',... 'HorizontalAlignment','left',... 'Position',[0.801369863013699 0.42483660130719 0.198630136986301 0.111111111111111],... 'String','(ms)',... 'Style','text',... 'Tag','text23',... 'Behavior',get(0,'defaultuicontrolBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'text16'; h39 = uicontrol(... 'Parent',h32,... 'Units','normalized',... 'HorizontalAlignment','left',... 'Position',[0.106951871657754 0.86784989147938 0.449197860962567 0.111111111111111],... 'String','Vector Type',... 'Style','text',... 'Tag','text16',... 'Behavior',get(0,'defaultuicontrolBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'datatype'; h40 = uicontrol(... 'Parent',h32,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','dtwexpogui(''datatype_Callback'',gcbo,[],guidata(gcbo))',... 'Position',[0.106951871657754 0.736831664682954 0.588235294117647 0.130434782608696],... 'String',{ 'Cepstrum'; 'MFCC'; 'LPC' },... 'Style','popupmenu',... 'Value',1,... 'CreateFcn', {@local_CreateFcn, 'dtwexpogui(''datatype_CreateFcn'',gcbo,[],guidata(gcbo))', appdata} ,... 'Tag','datatype',... 'Behavior',get(0,'defaultuicontrolBehavior')); appdata = []; appdata.lastValidTag = 'analyze'; h41 = uicontrol(... 'Parent',h32,... 'Units','normalized',... 'Callback','dtwexpogui(''analyze_Callback'',gcbo,[],guidata(gcbo))',... 'Position',[0.647058823529412 0.0331279609792515 0.320855614973262 0.130434782608696],... 'String','Analyze',... 'Tag','analyze',... 'Behavior',get(0,'defaultuicontrolBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'play_test'; h42 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'Callback','dtwexpogui(''play_test_Callback'',gcbo,[],guidata(gcbo))',... 'Position',[20.6494325346784 14.4927536231884 5.67465321563682 1.5],... 'String','Play',... 'Tag','play_test',... 'Behavior',get(0,'defaultuicontrolBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'refinfo'; h43 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','dtwexpogui(''refinfo_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'Max',10,... 'Position',[0.382867132867133 0.0027972027972028 0.300699300699301 0.0951048951048951],... 'String','',... 'Style','edit',... 'CreateFcn', {@local_CreateFcn, 'dtwexpogui(''refinfo_CreateFcn'',gcbo,[],guidata(gcbo))', appdata} ,... 'Tag','refinfo',... 'Behavior',get(0,'defaultuicontrolBehavior')); appdata = []; appdata.lastValidTag = 'text17'; h44 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'HorizontalAlignment','left',... 'Position',[0.375874125874126 0.20979020979021 0.115384615384615 0.0237762237762238],... 'String','Test Info',... 'Style','text',... 'Tag','text17',... 'Behavior',get(0,'defaultuicontrolBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'testinfo'; h45 = uicontrol(... 'Parent',h1,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','dtwexpogui(''testinfo_Callback'',gcbo,[],guidata(gcbo))',... 'HorizontalAlignment','left',... 'Max',5,... 'Position',[0.382867132867133 0.118881118881119 0.300699300699301 0.0951048951048951],... 'String','',... 'Style','edit',... 'CreateFcn', {@local_CreateFcn, 'dtwexpogui(''testinfo_CreateFcn'',gcbo,[],guidata(gcbo))', appdata} ,... 'Tag','testinfo',... 'Behavior',get(0,'defaultuicontrolBehavior')); appdata = []; appdata.lastValidTag = 'uipanel2'; h46 = uipanel(... 'Parent',h1,... 'Title','Time Alignment',... 'Position',[0.715535718881319 0.00263504611330698 0.26332817400064 0.235836627140975],... 'Tag','uipanel2',... 'Behavior',get(0,'defaultuipanelBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'text29'; h47 = uicontrol(... 'Parent',h46,... 'Units','normalized',... 'HorizontalAlignment','left',... 'Position',[0.101604278074866 0.786214380732337 0.449197860962567 0.130434782608696],... 'String','Policy',... 'Style','text',... 'Tag','text29',... 'Behavior',get(0,'defaultuicontrolBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'policymenu'; h48 = uicontrol(... 'Parent',h46,... 'Units','normalized',... 'BackgroundColor',[1 1 1],... 'Callback','dtwexpogui(''policymenu_Callback'',gcbo,[],guidata(gcbo))',... 'Position',[0.346938775510204 0.797385620915033 0.258503401360544 0.130718954248366],... 'String',{ 'I'; 'II'; 'III'; 'IV' },... 'Style','popupmenu',... 'Value',4,... 'CreateFcn', {@local_CreateFcn, 'dtwexpogui(''policymenu_CreateFcn'',gcbo,[],guidata(gcbo))', appdata} ,... 'Tag','policymenu',... 'Behavior',get(0,'defaultuicontrolBehavior')); appdata = []; appdata.lastValidTag = 'grid'; h49 = uicontrol(... 'Parent',h46,... 'Units','normalized',... 'Callback','dtwexpogui(''grid_Callback'',gcbo,[],guidata(gcbo))',... 'Position',[0.101604278074866 0.619547714065671 0.8 0.130434782608696],... 'String','Show Grid',... 'Style','checkbox',... 'Value',1,... 'Tag','grid',... 'Behavior',get(0,'defaultuicontrolBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'contours'; h50 = uicontrol(... 'Parent',h46,... 'Units','normalized',... 'Callback','dtwexpogui(''contours_Callback'',gcbo,[],guidata(gcbo))',... 'Position',[0.101604278074866 0.347942775794066 0.8 0.130434782608696],... 'String','Distance Contours',... 'Style','checkbox',... 'Value',1,... 'Tag','contours',... 'Behavior',get(0,'defaultuicontrolBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'optpath'; h51 = uicontrol(... 'Parent',h46,... 'Units','normalized',... 'Callback','dtwexpogui(''optpath_Callback'',gcbo,[],guidata(gcbo))',... 'Position',[0.101604278074866 0.205967467152091 0.8 0.130434782608696],... 'String','Optimal Path',... 'Style','checkbox',... 'Value',1,... 'Tag','optpath',... 'Behavior',get(0,'defaultuicontrolBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'show_distances'; h52 = uicontrol(... 'Parent',h46,... 'Units','normalized',... 'Callback','dtwexpogui(''show_distances_Callback'',gcbo,[],guidata(gcbo))',... 'Position',[0.0962566844919786 0.0454736399915973 0.5 0.130434782608696],... 'String','Plot Distances',... 'Tag','show_distances',... 'Behavior',get(0,'defaultuicontrolBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); appdata = []; appdata.lastValidTag = 'search'; h53 = uicontrol(... 'Parent',h46,... 'Units','normalized',... 'Callback','dtwexpogui(''search_Callback'',gcbo,[],guidata(gcbo))',... 'Position',[0.101604278074866 0.483745244929869 0.8 0.130434782608696],... 'String','Search Region',... 'Style','checkbox',... 'Value',1,... 'Tag','search',... 'Behavior',get(0,'defaultuicontrolBehavior'),... 'CreateFcn', {@local_CreateFcn, '', appdata} ); hsingleton = h1; % --- Set application data first then calling the CreateFcn. function local_CreateFcn(hObject, eventdata, createfcn, appdata) if ~isempty(appdata) names = fieldnames(appdata); for i=1:length(names) name = char(names(i)); setappdata(hObject, name, getfield(appdata,name)); end end if ~isempty(createfcn) eval(createfcn); end % --- Handles default GUIDE GUI creation and callback dispatch function varargout = gui_mainfcn(gui_State, varargin) gui_StateFields = {'gui_Name' 'gui_Singleton' 'gui_OpeningFcn' 'gui_OutputFcn' 'gui_LayoutFcn' 'gui_Callback'}; gui_Mfile = ''; for i=1:length(gui_StateFields) if ~isfield(gui_State, gui_StateFields{i}) error('Could not find field %s in the gui_State struct in GUI M-file %s', gui_StateFields{i}, gui_Mfile); elseif isequal(gui_StateFields{i}, 'gui_Name') gui_Mfile = [gui_State.(gui_StateFields{i}), '.m']; end end numargin = length(varargin); if numargin == 0 % DTWEXPOGUI % create the GUI gui_Create = 1; elseif isequal(ishandle(varargin{1}), 1) && ispc && iscom(varargin{1}) && isequal(varargin{1},gcbo) % DTWEXPOGUI(ACTIVEX,...) vin{1} = gui_State.gui_Name; vin{2} = [get(varargin{1}.Peer, 'Tag'), '_', varargin{end}]; vin{3} = varargin{1}; vin{4} = varargin{end-1}; vin{5} = guidata(varargin{1}.Peer); feval(vin{:}); return; elseif ischar(varargin{1}) && numargin>1 && isequal(ishandle(varargin{2}), 1) % DTWEXPOGUI('CALLBACK',hObject,eventData,handles,...) gui_Create = 0; else % DTWEXPOGUI(...) % create the GUI and hand varargin to the openingfcn gui_Create = 1; end if gui_Create == 0 varargin{1} = gui_State.gui_Callback; if nargout [varargout{1:nargout}] = feval(varargin{:}); else feval(varargin{:}); end else if gui_State.gui_Singleton gui_SingletonOpt = 'reuse'; else gui_SingletonOpt = 'new'; end % Open fig file with stored settings. Note: This executes all component % specific CreateFunctions with an empty HANDLES structure. % Do feval on layout code in m-file if it exists if ~isempty(gui_State.gui_LayoutFcn) gui_hFigure = feval(gui_State.gui_LayoutFcn, gui_SingletonOpt); % openfig (called by local_openfig below) does this for guis without % the LayoutFcn. Be sure to do it here so guis show up on screen. movegui(gui_hFigure,'onscreen') else gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt); % If the figure has InGUIInitialization it was not completely created % on the last pass. Delete this handle and try again. if isappdata(gui_hFigure, 'InGUIInitialization') delete(gui_hFigure); gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt); end end % Set flag to indicate starting GUI initialization setappdata(gui_hFigure,'InGUIInitialization',1); % Fetch GUIDE Application options gui_Options = getappdata(gui_hFigure,'GUIDEOptions'); if ~isappdata(gui_hFigure,'GUIOnScreen') % Adjust background color if gui_Options.syscolorfig set(gui_hFigure,'Color', get(0,'DefaultUicontrolBackgroundColor')); end % Generate HANDLES structure and store with GUIDATA guidata(gui_hFigure, guihandles(gui_hFigure)); end % If user specified 'Visible','off' in p/v pairs, don't make the figure % visible. gui_MakeVisible = 1; for ind=1:2:length(varargin) if length(varargin) == ind break; end len1 = min(length('visible'),length(varargin{ind})); len2 = min(length('off'),length(varargin{ind+1})); if ischar(varargin{ind}) && ischar(varargin{ind+1}) && ... strncmpi(varargin{ind},'visible',len1) && len2 > 1 if strncmpi(varargin{ind+1},'off',len2) gui_MakeVisible = 0; elseif strncmpi(varargin{ind+1},'on',len2) gui_MakeVisible = 1; end end end % Check for figure param value pairs for index=1:2:length(varargin) if length(varargin) == index || ~ischar(varargin{index}) break; end try set(gui_hFigure, varargin{index}, varargin{index+1}), catch break, end end % If handle visibility is set to 'callback', turn it on until finished % with OpeningFcn gui_HandleVisibility = get(gui_hFigure,'HandleVisibility'); if strcmp(gui_HandleVisibility, 'callback') set(gui_hFigure,'HandleVisibility', 'on'); end feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:}); if ishandle(gui_hFigure) % Update handle visibility set(gui_hFigure,'HandleVisibility', gui_HandleVisibility); % Make figure visible if gui_MakeVisible set(gui_hFigure, 'Visible', 'on') if gui_Options.singleton setappdata(gui_hFigure,'GUIOnScreen', 1); end end % Done with GUI initialization rmappdata(gui_hFigure,'InGUIInitialization'); end % If handle visibility is set to 'callback', turn it on until finished with % OutputFcn if ishandle(gui_hFigure) gui_HandleVisibility = get(gui_hFigure,'HandleVisibility'); if strcmp(gui_HandleVisibility, 'callback') set(gui_hFigure,'HandleVisibility', 'on'); end gui_Handles = guidata(gui_hFigure); else gui_Handles = []; end if nargout [varargout{1:nargout}] = feval(gui_State.gui_OutputFcn, gui_hFigure, [], gui_Handles); else feval(gui_State.gui_OutputFcn, gui_hFigure, [], gui_Handles); end if ishandle(gui_hFigure) set(gui_hFigure,'HandleVisibility', gui_HandleVisibility); end end function gui_hFigure = local_openfig(name, singleton) % openfig with three arguments was new from R13. Try to call that first, if % failed, try the old openfig. try gui_hFigure = openfig(name, singleton, 'auto'); catch % OPENFIG did not accept 3rd input argument until R13, % toggle default figure visible to prevent the figure % from showing up too soon. gui_OldDefaultVisible = get(0,'defaultFigureVisible'); set(0,'defaultFigureVisible','off'); gui_hFigure = openfig(name, singleton); set(0,'defaultFigureVisible',gui_OldDefaultVisible); end