[COLOR=#000000][FONT=Tahoma][FONT=monospace][COLOR=#0000FF]function[/COLOR] [COLOR=#0000FF]varargout[/COLOR] = myCode[COLOR=#008800]([/COLOR][COLOR=#0000FF]varargin[/COLOR][COLOR=#008800])[/COLOR]
[COLOR=#228B22]% MYCODE MATLAB code for myCode.fig[/COLOR]
[COLOR=#228B22]% MYCODE, by itself, creates a new MYCODE or raises the existing[/COLOR]
[COLOR=#228B22]% singleton*.[/COLOR]
[COLOR=#228B22]%[/COLOR]
[COLOR=#228B22]% H = MYCODE returns the handle to a new MYCODE or the handle to[/COLOR]
[COLOR=#228B22]% the existing singleton*.[/COLOR]
[COLOR=#228B22]%[/COLOR]
[COLOR=#228B22]% MYCODE('CALLBACK',hObject,eventData,handles,...) calls the local[/COLOR]
[COLOR=#228B22]% function named CALLBACK in MYCODE.M with the given input arguments.[/COLOR]
[COLOR=#228B22]%[/COLOR]
[COLOR=#228B22]% MYCODE('Property','Value',...) creates a new MYCODE or raises the[/COLOR]
[COLOR=#228B22]% existing singleton*. Starting from the left, property value pairs are[/COLOR]
[COLOR=#228B22]% applied to the GUI before myCode_OpeningFcn gets called. An[/COLOR]
[COLOR=#228B22]% unrecognized property name or invalid value makes property application[/COLOR]
[COLOR=#228B22]% stop. All inputs are passed to myCode_OpeningFcn via varargin.[/COLOR]
[COLOR=#228B22]%[/COLOR]
[COLOR=#228B22]% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one[/COLOR]
[COLOR=#228B22]% instance to run (singleton)".[/COLOR]
[COLOR=#228B22]%[/COLOR]
[COLOR=#228B22]% See also: GUIDE, GUIDATA, GUIHANDLES[/COLOR]
[COLOR=#228B22]% Edit the above text to modify the response to help myCode[/COLOR]
[COLOR=#228B22]% Last Modified by GUIDE v2.5 31-Jul-2014 00:29:58[/COLOR]
[COLOR=#228B22]% Begin initialization code - DO NOT EDIT[/COLOR]
gui_Singleton = [COLOR=#3333FF]1[/COLOR];
gui_State = [COLOR=#0000FF]struct[/COLOR][COLOR=#008800]([/COLOR][COLOR=#A020F0]'gui_Name'[/COLOR], mfilename, [COLOR=#008800]...[/COLOR]
[COLOR=#A020F0]'gui_Singleton'[/COLOR], gui_Singleton, [COLOR=#008800]...[/COLOR]
[COLOR=#A020F0]'gui_OpeningFcn'[/COLOR], @myCode_OpeningFcn, [COLOR=#008800]...[/COLOR]
[COLOR=#A020F0]'gui_OutputFcn'[/COLOR], @myCode_OutputFcn, [COLOR=#008800]...[/COLOR]
[COLOR=#A020F0]'gui_LayoutFcn'[/COLOR], [COLOR=#008800][[/COLOR][COLOR=#008800]][/COLOR] , [COLOR=#008800]...[/COLOR]
[COLOR=#A020F0]'gui_Callback'[/COLOR], [COLOR=#008800][[/COLOR][COLOR=#008800]][/COLOR][COLOR=#008800])[/COLOR];
[COLOR=#0000FF]if[/COLOR] [COLOR=#0000FF]nargin[/COLOR] && ischar[COLOR=#008800]([/COLOR][COLOR=#0000FF]varargin[/COLOR][COLOR=#008800]{[/COLOR][COLOR=#3333FF]1[/COLOR][COLOR=#008800]}[/COLOR][COLOR=#008800])[/COLOR]
gui_State.gui_Callback = str2func[COLOR=#008800]([/COLOR][COLOR=#0000FF]varargin[/COLOR][COLOR=#008800]{[/COLOR][COLOR=#3333FF]1[/COLOR][COLOR=#008800]}[/COLOR][COLOR=#008800])[/COLOR];
[COLOR=#0000FF]end[/COLOR]
[COLOR=#0000FF]if[/COLOR] [COLOR=#0000FF]nargout[/COLOR]
[COLOR=#008800][[/COLOR][COLOR=#0000FF]varargout[/COLOR][COLOR=#008800]{[/COLOR][COLOR=#3333FF]1[/COLOR]:[COLOR=#0000FF]nargout[/COLOR][COLOR=#008800]}[/COLOR][COLOR=#008800]][/COLOR] = gui_mainfcn[COLOR=#008800]([/COLOR]gui_State, [COLOR=#0000FF]varargin[/COLOR][COLOR=#008800]{[/COLOR]:[COLOR=#008800]}[/COLOR][COLOR=#008800])[/COLOR];
[COLOR=#0000FF]else[/COLOR]
gui_mainfcn[COLOR=#008800]([/COLOR]gui_State, [COLOR=#0000FF]varargin[/COLOR][COLOR=#008800]{[/COLOR]:[COLOR=#008800]}[/COLOR][COLOR=#008800])[/COLOR];
[COLOR=#0000FF]end[/COLOR]
[COLOR=#228B22]% End initialization code - DO NOT EDIT[/COLOR]
[COLOR=#228B22]% --- Executes just before myCode is made visible.[/COLOR]
[COLOR=#0000FF]function[/COLOR] myCode_OpeningFcn[COLOR=#008800]([/COLOR]hObject, eventdata, handles, [COLOR=#0000FF]varargin[/COLOR][COLOR=#008800])[/COLOR]
[COLOR=#228B22]% This function has no output args, see OutputFcn.[/COLOR]
[COLOR=#228B22]% hObject handle to figure[/COLOR]
[COLOR=#228B22]% eventdata reserved - to be defined in a future version of MATLAB[/COLOR]
[COLOR=#228B22]% handles structure with handles and user data (see GUIDATA)[/COLOR]
[COLOR=#228B22]% varargin command line arguments to myCode (see VARARGIN)[/COLOR]
[COLOR=#228B22]% Choose default command line output for myCode[/COLOR]
handles.output = hObject;
[COLOR=#228B22]% Update handles structure[/COLOR]
guidata[COLOR=#008800]([/COLOR]hObject, handles[COLOR=#008800])[/COLOR];
[COLOR=#228B22]% UIWAIT makes myCode wait for user response (see UIRESUME)[/COLOR]
[COLOR=#228B22]% uiwait(handles.figure1);[/COLOR]
[COLOR=#228B22]% --- Outputs from this function are returned to the command line.[/COLOR]
[COLOR=#0000FF]function[/COLOR] [COLOR=#0000FF]varargout[/COLOR] = myCode_OutputFcn[COLOR=#008800]([/COLOR]hObject, eventdata, handles[COLOR=#008800])[/COLOR]
[COLOR=#228B22]% varargout cell array for returning output args (see VARARGOUT);[/COLOR]
[COLOR=#228B22]% hObject handle to figure[/COLOR]
[COLOR=#228B22]% eventdata reserved - to be defined in a future version of MATLAB[/COLOR]
[COLOR=#228B22]% handles structure with handles and user data (see GUIDATA)[/COLOR]
[COLOR=#228B22]% Get default command line output from handles structure[/COLOR]
[COLOR=#0000FF]varargout[/COLOR][COLOR=#008800]{[/COLOR][COLOR=#3333FF]1[/COLOR][COLOR=#008800]}[/COLOR] = handles.output;
[COLOR=#228B22]% --- Executes on button press in pushbutton1.[/COLOR]
[COLOR=#0000FF]function[/COLOR] pushbutton1_Callback[COLOR=#008800]([/COLOR]hObject, eventdata, handles[COLOR=#008800])[/COLOR]
[COLOR=#228B22]% hObject handle to pushbutton1 (see GCBO)[/COLOR]
[COLOR=#228B22]% eventdata reserved - to be defined in a future version of MATLAB[/COLOR]
[COLOR=#228B22]% handles structure with handles and user data (see GUIDATA)[/COLOR][/FONT]
[/FONT][/COLOR]