TEST1 M-file for test1.fig TEST1, by itself, creates a new TEST1 or raises the existing singleton*. H = TEST1 returns the handle to a new TEST1 or the handle to the existing singleton*. TEST1('CALLBACK',hObject,eventData,handles,...) calls the local function named CALLBACK in TEST1.M with the given input arguments. TEST1('Property','Value',...) creates a new TEST1 or raises the existing singleton*. Starting from the left, property value pairs are applied to the GUI before test1_OpeningFunction gets called. An unrecognized property name or invalid value makes property application stop. All inputs are passed to test1_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
0001 function varargout = test1(varargin) 0002 % TEST1 M-file for test1.fig 0003 % TEST1, by itself, creates a new TEST1 or raises the existing 0004 % singleton*. 0005 % 0006 % H = TEST1 returns the handle to a new TEST1 or the handle to 0007 % the existing singleton*. 0008 % 0009 % TEST1('CALLBACK',hObject,eventData,handles,...) calls the local 0010 % function named CALLBACK in TEST1.M with the given input arguments. 0011 % 0012 % TEST1('Property','Value',...) creates a new TEST1 or raises the 0013 % existing singleton*. Starting from the left, property value pairs are 0014 % applied to the GUI before test1_OpeningFunction gets called. An 0015 % unrecognized property name or invalid value makes property application 0016 % stop. All inputs are passed to test1_OpeningFcn via varargin. 0017 % 0018 % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one 0019 % instance to run (singleton)". 0020 % 0021 % See also: GUIDE, GUIDATA, GUIHANDLES 0022 0023 % Edit the above text to modify the response to help test1 0024 0025 % Last Modified by GUIDE v2.5 25-Sep-2006 19:20:24 0026 0027 % Begin initialization code - DO NOT EDIT 0028 gui_Singleton = 1; 0029 gui_State = struct('gui_Name', mfilename, ... 0030 'gui_Singleton', gui_Singleton, ... 0031 'gui_OpeningFcn', @test1_OpeningFcn, ... 0032 'gui_OutputFcn', @test1_OutputFcn, ... 0033 'gui_LayoutFcn', [] , ... 0034 'gui_Callback', []); 0035 if nargin && ischar(varargin{1}) 0036 gui_State.gui_Callback = str2func(varargin{1}); 0037 end 0038 0039 if nargout 0040 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); 0041 else 0042 gui_mainfcn(gui_State, varargin{:}); 0043 end 0044 % End initialization code - DO NOT EDIT 0045 0046 0047 % --- Executes just before test1 is made visible. 0048 function test1_OpeningFcn(hObject, eventdata, handles, varargin) 0049 % This function has no output args, see OutputFcn. 0050 % hObject handle to figure 0051 % eventdata reserved - to be defined in a future version of MATLAB 0052 % handles structure with handles and user data (see GUIDATA) 0053 % varargin command line arguments to test1 (see VARARGIN) 0054 0055 % Choose default command line output for test1 0056 handles.output = hObject; 0057 0058 % Update handles structure 0059 guidata(hObject, handles); 0060 0061 % UIWAIT makes test1 wait for user response (see UIRESUME) 0062 % uiwait(handles.figure1); 0063 0064 0065 % --- Outputs from this function are returned to the command line. 0066 function varargout = test1_OutputFcn(hObject, eventdata, handles) 0067 % varargout cell array for returning output args (see VARARGOUT); 0068 % hObject handle to figure 0069 % eventdata reserved - to be defined in a future version of MATLAB 0070 % handles structure with handles and user data (see GUIDATA) 0071 0072 % Get default command line output from handles structure 0073 varargout{1} = handles.output; 0074 0075 0076 % --- Executes on button press in radiobutton1. 0077 function radiobutton1_Callback(hObject, eventdata, handles) 0078 % hObject handle to radiobutton1 (see GCBO) 0079 % eventdata reserved - to be defined in a future version of MATLAB 0080 % handles structure with handles and user data (see GUIDATA) 0081 0082 % Hint: get(hObject,'Value') returns toggle state of radiobutton1 0083 0084