TEST_BUTTON M-file for test_button.fig TEST_BUTTON, by itself, creates a new TEST_BUTTON or raises the existing singleton*. H = TEST_BUTTON returns the handle to a new TEST_BUTTON or the handle to the existing singleton*. TEST_BUTTON('CALLBACK',hObject,eventData,handles,...) calls the local function named CALLBACK in TEST_BUTTON.M with the given input arguments. TEST_BUTTON('Property','Value',...) creates a new TEST_BUTTON or raises the existing singleton*. Starting from the left, property value pairs are applied to the GUI before test_button_OpeningFunction gets called. An unrecognized property name or invalid value makes property application stop. All inputs are passed to test_button_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 = test_button(varargin) 0002 % TEST_BUTTON M-file for test_button.fig 0003 % TEST_BUTTON, by itself, creates a new TEST_BUTTON or raises the existing 0004 % singleton*. 0005 % 0006 % H = TEST_BUTTON returns the handle to a new TEST_BUTTON or the handle to 0007 % the existing singleton*. 0008 % 0009 % TEST_BUTTON('CALLBACK',hObject,eventData,handles,...) calls the local 0010 % function named CALLBACK in TEST_BUTTON.M with the given input arguments. 0011 % 0012 % TEST_BUTTON('Property','Value',...) creates a new TEST_BUTTON or raises the 0013 % existing singleton*. Starting from the left, property value pairs are 0014 % applied to the GUI before test_button_OpeningFunction gets called. An 0015 % unrecognized property name or invalid value makes property application 0016 % stop. All inputs are passed to test_button_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 test_button 0024 0025 % Last Modified by GUIDE v2.5 23-Jun-2006 16:05:02 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', @test_button_OpeningFcn, ... 0032 'gui_OutputFcn', @test_button_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 test_button is made visible. 0048 function test_button_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 test_button (see VARARGIN) 0054 0055 % Choose default command line output for test_button 0056 handles.output = hObject; 0057 0058 % Update handles structure 0059 guidata(hObject, handles); 0060 0061 % UIWAIT makes test_button 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 = test_button_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