www.gusucode.com > 声音的处理有:LPC,FFT,共振峰,频谱源码程序 > siganlandsystemusingMatlab/SSUM/wavexpo/wavexpo.m
function varargout = wavexpo(varargin) % WAVEXPO M-file for wavexpo.fig % WAVEXPO, by itself, creates a new WAVEXPO or raises the existing % singleton*. % % H = WAVEXPO returns the handle to a new WAVEXPO or the handle to % the existing singleton*. % % WAVEXPO('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in WAVEXPO.M with the given input arguments. % % WAVEXPO('Property','Value',...) creates a new WAVEXPO or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before wavexpo_OpeningFunction gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to wavexpo_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 wavexpo % Last Modified by GUIDE v2.5 17-Mar-2004 22:21:59 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @wavexpo_OpeningFcn, ... 'gui_OutputFcn', @wavexpo_OutputFcn, ... 'gui_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 wavexpo is made visible. function wavexpo_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 wavexpo (see VARARGIN) % Choose default command line output for wavexpo handles.output = hObject; guidata(hObject, handles); set(gcf,'UserData',handles); wavexpofn; % --- Outputs from this function are returned to the command line. function varargout = wavexpo_OutputFcn(hObject, eventdata, handles) % varargout cell array for returning output args (see VARARGOUT); % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Get default command line output from handles structure varargout{1} = handles.output; function waveform_Callback(hObject, eventdata, handles) wavexpofn 'waveform' function spectrum_Callback(hObject, eventdata, handles) wavexpofn 'spectrum' function play_Callback(hObject, eventdata, handles) wavexpofn 'play' function write_Callback(hObject, eventdata, handles) wavexpofn 'write_soundfile' function refresh_Callback(hObject, eventdata, handles) wavexpofn 'update' % --- Executes during object creation, after setting all properties. function waveform_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes during object creation, after setting all properties. function f0_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function f0_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 0; set(gcf,'UserData',handles); wavexpofn 'fslider' % --- Executes during object creation, after setting all properties. function f0t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function f0t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 0; set(gcf,'UserData',handles); wavexpofn 'ftext' % --- Executes during object creation, after setting all properties. function f1_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function f1_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 1; set(gcf,'UserData',handles); wavexpofn 'fslider' % --- Executes during object creation, after setting all properties. function f1t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function f1t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 1; set(gcf,'UserData',handles); wavexpofn 'ftext' % --- Executes during object creation, after setting all properties. function f2_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function f2_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 2; set(gcf,'UserData',handles); wavexpofn 'fslider' % --- Executes during object creation, after setting all properties. function f2t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function f2t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 2; set(gcf,'UserData',handles); wavexpofn 'ftext' % --- Executes during object creation, after setting all properties. function f3_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function f3_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 3; set(gcf,'UserData',handles); wavexpofn 'fslider' % --- Executes during object creation, after setting all properties. function f3t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function f3t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 3; set(gcf,'UserData',handles); wavexpofn 'ftext' % --- Executes during object creation, after setting all properties. function f4_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function f4_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 4; set(gcf,'UserData',handles); wavexpofn 'fslider' % --- Executes during object creation, after setting all properties. function f4t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function f4t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 4; set(gcf,'UserData',handles); wavexpofn 'ftext' % --- Executes during object creation, after setting all properties. function f5_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function f5_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 5; set(gcf,'UserData',handles); wavexpofn 'fslider' % --- Executes during object creation, after setting all properties. function f5t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function f5t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 5; set(gcf,'UserData',handles); wavexpofn 'ftext' % --- Executes during object creation, after setting all properties. function f6_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function f6_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 6; set(gcf,'UserData',handles); wavexpofn 'fslider' % --- Executes during object creation, after setting all properties. function f6t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function f6t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 6; set(gcf,'UserData',handles); wavexpofn 'ftext' % --- Executes during object creation, after setting all properties. function f7_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function f7_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 7; set(gcf,'UserData',handles); wavexpofn 'fslider' % --- Executes during object creation, after setting all properties. function f7t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function f7t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 7; set(gcf,'UserData',handles); wavexpofn 'ftext' % --- Executes during object creation, after setting all properties. function a0_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function a0_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 0; set(gcf,'UserData',handles); wavexpofn 'aslider' % --- Executes during object creation, after setting all properties. function a0t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function a0t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 0; set(gcf,'UserData',handles); wavexpofn 'atext' % --- Executes during object creation, after setting all properties. function a1_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function a1_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 1; set(gcf,'UserData',handles); wavexpofn 'aslider' % --- Executes during object creation, after setting all properties. function a1t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function a1t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 1; set(gcf,'UserData',handles); wavexpofn 'atext' % --- Executes during object creation, after setting all properties. function a2_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function a2_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 2; set(gcf,'UserData',handles); wavexpofn 'aslider' % --- Executes during object creation, after setting all properties. function a2t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function a2t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 2; set(gcf,'UserData',handles); wavexpofn 'atext' % --- Executes during object creation, after setting all properties. function a3_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function a3_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 3; set(gcf,'UserData',handles); wavexpofn 'aslider' % --- Executes during object creation, after setting all properties. function a3t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function a3t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 3; set(gcf,'UserData',handles); wavexpofn 'atext' % --- Executes during object creation, after setting all properties. function a4_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function a4_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 4; set(gcf,'UserData',handles); wavexpofn 'aslider' % --- Executes during object creation, after setting all properties. function a4t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function a4t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 4; set(gcf,'UserData',handles); wavexpofn 'atext' % --- Executes during object creation, after setting all properties. function a5_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function a5_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 5; set(gcf,'UserData',handles); wavexpofn 'aslider' % --- Executes during object creation, after setting all properties. function a5t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function a5t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 5; set(gcf,'UserData',handles); wavexpofn 'atext' % --- Executes during object creation, after setting all properties. function a6_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function a6_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 6; set(gcf,'UserData',handles); wavexpofn 'aslider' % --- Executes during object creation, after setting all properties. function a6t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function a6t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 6; set(gcf,'UserData',handles); wavexpofn 'atext' % --- Executes during object creation, after setting all properties. function a7_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function a7_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 7; set(gcf,'UserData',handles); wavexpofn 'aslider' % --- Executes during object creation, after setting all properties. function a7t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function a7t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 7; set(gcf,'UserData',handles); wavexpofn 'atext' % --- Executes during object creation, after setting all properties. function p0_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function p0_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 0; set(gcf,'UserData',handles); wavexpofn 'pslider' % --- Executes during object creation, after setting all properties. function p0t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function p0t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 0; set(gcf,'UserData',handles); wavexpofn 'ptext' % --- Executes during object creation, after setting all properties. function p1_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function p1_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 1; set(gcf,'UserData',handles); wavexpofn 'pslider' % --- Executes during object creation, after setting all properties. function p1t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function p1t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 1; set(gcf,'UserData',handles); wavexpofn 'ptext' % --- Executes during object creation, after setting all properties. function p2_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function p2_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 2; set(gcf,'UserData',handles); wavexpofn 'pslider' % --- Executes during object creation, after setting all properties. function p2t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function p2t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 2; set(gcf,'UserData',handles); wavexpofn 'ptext' % --- Executes during object creation, after setting all properties. function p3_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function p3_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 3; set(gcf,'UserData',handles); wavexpofn 'pslider' % --- Executes during object creation, after setting all properties. function p3t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function p3t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 3; set(gcf,'UserData',handles); wavexpofn 'ptext' % --- Executes during object creation, after setting all properties. function p4_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function p4_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 4; set(gcf,'UserData',handles); wavexpofn 'pslider' % --- Executes during object creation, after setting all properties. function p4t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function p4t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 4; set(gcf,'UserData',handles); wavexpofn 'ptext' % --- Executes during object creation, after setting all properties. function p5_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function p5_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 5; set(gcf,'UserData',handles); wavexpofn 'pslider' % --- Executes during object creation, after setting all properties. function p5t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function p5t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 5; set(gcf,'UserData',handles); wavexpofn 'ptext' % --- Executes during object creation, after setting all properties. function p6_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function p6_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 6; set(gcf,'UserData',handles); wavexpofn 'pslider' % --- Executes during object creation, after setting all properties. function p6t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function p6t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 6; set(gcf,'UserData',handles); wavexpofn 'ptext' % --- Executes during object creation, after setting all properties. function p7_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function p7_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 7; set(gcf,'UserData',handles); wavexpofn 'pslider' % --- Executes during object creation, after setting all properties. function p7t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function p7t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 7; set(gcf,'UserData',handles); wavexpofn 'ptext' % --- Executes during object creation, after setting all properties. function f8_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function f8_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 8; set(gcf,'UserData',handles); wavexpofn 'fslider' % --- Executes during object creation, after setting all properties. function f8t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function f8t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 8; set(gcf,'UserData',handles); wavexpofn 'ftext' % --- Executes during object creation, after setting all properties. function f9_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function f9_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 9; set(gcf,'UserData',handles); wavexpofn 'fslider' % --- Executes during object creation, after setting all properties. function f9t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function f9t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 9; set(gcf,'UserData',handles); wavexpofn 'ftext' % --- Executes during object creation, after setting all properties. function f10_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function f10_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 10; set(gcf,'UserData',handles); wavexpofn 'fslider' % --- Executes during object creation, after setting all properties. function f10t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function f10t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 10; set(gcf,'UserData',handles); wavexpofn 'ftext' % --- Executes during object creation, after setting all properties. function f11_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function f11_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 11; set(gcf,'UserData',handles); wavexpofn 'fslider' % --- Executes during object creation, after setting all properties. function f11t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function f11t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 11; set(gcf,'UserData',handles); wavexpofn 'ftext' % --- Executes during object creation, after setting all properties. function f12_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function f12_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 12; set(gcf,'UserData',handles); wavexpofn 'fslider' % --- Executes during object creation, after setting all properties. function f12t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function f12t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 12; set(gcf,'UserData',handles); wavexpofn 'ftext' % --- Executes during object creation, after setting all properties. function f13_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function f13_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 13; set(gcf,'UserData',handles); wavexpofn 'fslider' % --- Executes during object creation, after setting all properties. function f13t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function f13t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 13; set(gcf,'UserData',handles); wavexpofn 'ftext' % --- Executes during object creation, after setting all properties. function f14_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function f14_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 14; set(gcf,'UserData',handles); wavexpofn 'fslider' % --- Executes during object creation, after setting all properties. function f14t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function f14t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 14; set(gcf,'UserData',handles); wavexpofn 'ftext' % --- Executes during object creation, after setting all properties. function a8_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function a8_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 8; set(gcf,'UserData',handles); wavexpofn 'aslider' % --- Executes during object creation, after setting all properties. function a8t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function a8t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 8; set(gcf,'UserData',handles); wavexpofn 'atext' % --- Executes during object creation, after setting all properties. function a9_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function a9_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 9; set(gcf,'UserData',handles); wavexpofn 'aslider' % --- Executes during object creation, after setting all properties. function a9t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function a9t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 9; set(gcf,'UserData',handles); wavexpofn 'atext' % --- Executes during object creation, after setting all properties. function a10_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function a10_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 10; set(gcf,'UserData',handles); wavexpofn 'aslider' % --- Executes during object creation, after setting all properties. function a10t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function a10t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 10; set(gcf,'UserData',handles); wavexpofn 'atext' % --- Executes during object creation, after setting all properties. function a11_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function a11_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 11; set(gcf,'UserData',handles); wavexpofn 'aslider' % --- Executes during object creation, after setting all properties. function a11t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function a11t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 11; set(gcf,'UserData',handles); wavexpofn 'atext' % --- Executes during object creation, after setting all properties. function a12_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function a12_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 12; set(gcf,'UserData',handles); wavexpofn 'aslider' % --- Executes during object creation, after setting all properties. function a12t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function a12t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 12; set(gcf,'UserData',handles); wavexpofn 'atext' % --- Executes during object creation, after setting all properties. function a13_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function a13_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 13; set(gcf,'UserData',handles); wavexpofn 'aslider' % --- Executes during object creation, after setting all properties. function a13t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function a13t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 13; set(gcf,'UserData',handles); wavexpofn 'atext' % --- Executes during object creation, after setting all properties. function a14t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function a14t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 14; set(gcf,'UserData',handles); wavexpofn 'atext' % --- Executes during object creation, after setting all properties. function a14_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function a14_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 14; set(gcf,'UserData',handles); wavexpofn 'aslider' % --- Executes during object creation, after setting all properties. function p8_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function p8_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 8; set(gcf,'UserData',handles); wavexpofn 'pslider' % --- Executes during object creation, after setting all properties. function p9_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function p9_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 9; set(gcf,'UserData',handles); wavexpofn 'pslider' % --- Executes during object creation, after setting all properties. function p10_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function p10_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 10; set(gcf,'UserData',handles); wavexpofn 'pslider' % --- Executes during object creation, after setting all properties. function p11_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function p11_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 11; set(gcf,'UserData',handles); wavexpofn 'pslider' % --- Executes during object creation, after setting all properties. function p12_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function p12_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 12; set(gcf,'UserData',handles); wavexpofn 'pslider' % --- Executes during object creation, after setting all properties. function p13_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function p13_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 13; set(gcf,'UserData',handles); wavexpofn 'pslider' % --- Executes during object creation, after setting all properties. function p14_CreateFcn(hObject, eventdata, handles) usewhitebg = 1; if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end % --- Executes on slider movement. function p14_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 14; set(gcf,'UserData',handles); wavexpofn 'pslider' % --- Executes during object creation, after setting all properties. function p8t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function p8t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 8; set(gcf,'UserData',handles); wavexpofn 'ptext' % --- Executes during object creation, after setting all properties. function p9t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function p9t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 9; set(gcf,'UserData',handles); wavexpofn 'ptext' % --- Executes during object creation, after setting all properties. function p10t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function p10t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 10; set(gcf,'UserData',handles); wavexpofn 'ptext' % --- Executes during object creation, after setting all properties. function p11t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function p11t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 11; set(gcf,'UserData',handles); wavexpofn 'ptext' % --- Executes during object creation, after setting all properties. function p12t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function p12t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 12; set(gcf,'UserData',handles); wavexpofn 'ptext' % --- Executes during object creation, after setting all properties. function p13t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function p13t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 13; set(gcf,'UserData',handles); wavexpofn 'ptext' % --- Executes during object creation, after setting all properties. function p14t_CreateFcn(hObject, eventdata, handles) if ispc set(hObject,'BackgroundColor','white'); else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); end function p14t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 14; set(gcf,'UserData',handles); wavexpofn 'ptext' % -------------------------------------------------------------------- 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 sonogram_Callback(hObject, eventdata, handles) wavexpofn 'sonogram'; % -------------------------------------------------------------------- function fourier_Callback(hObject, eventdata, handles) wavexpofn 'fourier'; % --- Executes on button press in randomize. function randomize_Callback(hObject, eventdata, handles) wavexpofn 'randomizephase'; % -------------------------------------------------------------------- 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) wavexpofn '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) wavexpofn 'help'; % -------------------------------------------------------------------- function Untitled_2_Callback(hObject, eventdata, handles) % hObject handle to Untitled_2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)