資源簡介
基于MATLAB的GUI設計的實現記事本FILE菜單下的 新建 打開 保存 另存為 退出等菜單項功能的腳本文件和fig文件

代碼片段和文件信息
function?varargout?=?THE6(varargin)
%?THE6?MATLAB?code?for?THE6.fig
%??????THE6?by?itself?creates?a?new?THE6?or?raises?the?existing
%??????singleton*.
%
%??????H?=?THE6?returns?the?handle?to?a?new?THE6?or?the?handle?to
%??????the?existing?singleton*.
%
%??????THE6(‘CALLBACK‘hobjecteventDatahandles...)?calls?the?local
%??????function?named?CALLBACK?in?THE6.M?with?the?given?input?arguments.
%
%??????THE6(‘Property‘‘Value‘...)?creates?a?new?THE6?or?raises?the
%??????existing?singleton*.??Starting?from?the?left?property?value?pairs?are
%??????applied?to?the?GUI?before?THE6_OpeningFcn?gets?called.??An
%??????unrecognized?property?name?or?invalid?value?makes?property?application
%??????stop.??All?inputs?are?passed?to?THE6_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?THE6
%?Last?Modified?by?GUIDE?v2.5?27-Dec-2018?14:40:46
%?Begin?initialization?code?-?DO?NOT?EDIT
gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
???????????????????‘gui_Singleton‘??gui_Singleton?...
???????????????????‘gui_OpeningFcn‘?@THE6_OpeningFcn?...
???????????????????‘gui_OutputFcn‘??@THE6_OutputFcn?...
???????????????????‘gui_LayoutFcn‘??[]??...
???????????????????‘gui_Callback‘???[]);
if?nargin?&&?ischar(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?THE6?is?made?visible.
function?THE6_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?THE6?(see?VARARGIN)
%?Choose?default?command?line?output?for?THE6
handles.output?=?hobject;
%?Update?handles?structure
guidata(hobject?handles);
%?UIWAIT?makes?THE6?wait?for?user?response?(see?UIRESUME)
%?uiwait(handles.figure1);
%?---?Outputs?from?this?function?are?returned?to?the?command?line.
function?varargout?=?THE6_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?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‘String‘)?returns?contents?of?edit1?a
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????8258??2018-12-27?15:40??THE6.fig
?????文件???????6144??2018-12-27?13:31??THE6.m
-----------?---------??----------?-----??----
????????????????14402????????????????????2
評論
共有 條評論