【正文】
第 29 頁 共 44 頁 39。gui_LayoutF39。, [] , ... 39。gui_Callback39。, [])。 if nargin amp。amp。 ischar(varargin{1}) = str2func(varargin{1})。 end if nargout [varargout{1:nargout}] = gui_mainf(gui_State, varargin{:})。 else gui_mainf(gui_State, varargin{:})。 end % End initialization code DO NOT EDIT % Executes just before lyl is made visible. function lyl_OpeningF(hObject, eventdata, handles, varargin) % This function has no output args, see OutputF. % 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 mand line arguments to lyl (see VARARGIN) % Choose default mand line output for lyl = hObject。 % Update handles structure guidata(hObject, handles)。 % UIWAIT makes lyl wait for user response (see UIRESUME) % uiwait()。 % Outputs from this function are returned to the mand line. function varargout = lyl_OutputF(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 課程設(shè)計 第 30 頁 共 44 頁 % handles structure with handles and user data (see GUIDATA) % Get default mand line output from handles structure varargout{1} = 。 function edit1_Callback(hObject, eventdata, handles) % hObject handle to edit1 (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,39。String39。) returns contents of edit1 as text % str2double(get(hObject,39。String39。)) returns contents of edit1 as a double % Executes during object creation, after setting all properties. function edit1_CreateF(hObject, eventdata, handles) % hObject handle to edit1 (see GCBO) % eventdata reserved to be defined in a future version of MATLAB % handles empty handles not created until after all CreateFs called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc amp。amp。 isequal(get(hObject,39。BackgroundColor39。), get(0,39。defaultUicontrolBackgroundColor39。)) set(hObject,39。BackgroundColor39。,39。white39。)。 end function edit2_Callback(hObject, eventdata, handles) % hObject handle to edit2 (see GCBO) % eventdata reserved to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) 課程設(shè)計 第 31 頁 共 44 頁 % Hints: get(hObject,39。String39。) returns contents of edit2 as text % str2double(get(hObject,39。String39。)) returns contents of edit2 as a double % Executes during object creation, after setting all properties. function edit2_CreateF(hObject, eventdata, handles) % hObject handle to edit2 (see GCBO) % eventdata reserved to be defined in a future version of MATLAB % handles empty handles not created until after all CreateFs called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc amp。amp。 isequal(get(hObject,39。BackgroundColor39。), get(0,39。defaultUicontrolBackgroundColor39。)) set(hObject,39。BackgroundColor39。,39。white39。)。 end function edit3_Callback(hObject, eventdata, handles) % hObject handle to edit3 (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,39。String39。) returns contents of edit3 as text % str2double(get(hObject,39。String39。)) returns contents of edit3 as a double % Executes during object creation, after setting all properties. function edit3_CreateF(hObject, eventdata, handles) % hObject handle to edit3 (see GCBO) % eventdata reserved to be defined in a future version of MATLAB % handles empty handles not created until after all CreateFs 課程設(shè)計 第 32 頁 共 44 頁 called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc amp。amp。 isequal(get(hObject,39。BackgroundColor39。), get(0,39。defaultUicontrolBackgroundColor39。)) set(hObject,39。BackgroundColor39。,39。white39。)。 end function edit4_Callback(hObject, eventdata, handles) % hObject handle to edit4 (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,39。String39。) returns contents of edit4 as text % str2double(get(hObject,39。String39。)) returns contents of edit4 as a double % Executes during object creation, after setting all properties. function edit4_CreateF(hObject, eventdata, handles) % hObject handle to edit4 (see GCBO) % eventdata reserved to be defined in a future version of MATLAB % handles empty handles not created until after all CreateFs called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc amp。amp。 isequal(get(hObject,39。BackgroundColor39。), get(0,39。defaultUicontrolBackgroundColor39。)) set(hObject,39。BackgroundColor39。,39。white39。)。 end 課程設(shè)計 第 33 頁 共 44 頁 function edit5_Callback(hObject, eventdata, handles) % hObject handle to edit5 (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,39。String39。) returns contents of edit5 as text