資源簡介
看完后,保證你已經掌握了MATLAB、GUIDE界面編程,如果不會,請登錄我的博客:http://hi.baidu.com/pengjun來留言,我幫助你解決。
另外的工具欄和菜單欄的編程也比較簡單,就沒有寫上去,如果有誰用到,而不會的話,可以通知我一聲。

代碼片段和文件信息
function?varargout?=?lesson1(varargin)
%?LESSON1?M-file?for?lesson1.fig
%??????LESSON1?by?itself?creates?a?new?LESSON1?or?raises?the?existing
%??????singleton*.
%
%??????H?=?LESSON1?returns?the?handle?to?a?new?LESSON1?or?the?handle?to
%??????the?existing?singleton*.
%
%??????LESSON1(‘CALLBACK‘hobjecteventDatahandles...)?calls?the?local
%??????function?named?CALLBACK?in?LESSON1.M?with?the?given?input?arguments.
%
%??????LESSON1(‘Property‘‘Value‘...)?creates?a?new?LESSON1?or?raises?the
%??????existing?singleton*.??Starting?from?the?left?property?value?pairs?are
%??????applied?to?the?GUI?before?lesson1_OpeningFcn?gets?called.??An
%??????unrecognized?property?name?or?invalid?value?makes?property?application
%??????stop.??All?inputs?are?passed?to?lesson1_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?lesson1
%?Last?Modified?by?GUIDE?v2.5?27-Feb-2009?15:53:18
%?Begin?initialization?code?-?DO?NOT?EDIT
gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
???????????????????‘gui_Singleton‘??gui_Singleton?...
???????????????????‘gui_OpeningFcn‘?@lesson1_OpeningFcn?...
???????????????????‘gui_OutputFcn‘??@lesson1_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?lesson1?is?made?visible.
function?lesson1_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?lesson1?(see?VARARGIN)
%?Choose?default?command?line?output?for?lesson1
handles.output?=?hobject;
%?Update?handles?structure
guidata(hobject?handles);
%?UIWAIT?makes?lesson1?wait?for?user?response?(see?UIRESUME)
%?uiwait(handles.figure1);
%?---?Outputs?from?this?function?are?returned?to?the?command?line.
function?varargout?=?lesson1_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?edtNumber1_Callback(hobject?eventdata?handles)
%?hobject????handle?to?edtNumber1?(see?GCBO)
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?with?handles?and?user?data?(s
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2914??2009-02-27?16:51??MATLAB\Lesson1\lesson1.fig
?????文件???????5218??2009-02-27?16:47??MATLAB\Lesson1\lesson1.m
?????文件???????4056??2009-02-27?16:58??MATLAB\Lesson2\lesson2.m
?????文件???????5410??2009-02-27?17:03??MATLAB\Lesson2\lesson2.fig
?????文件???????7218??2009-02-27?17:32??MATLAB\Lesson3\lesson3.m
?????文件???????4777??2009-02-27?17:44??MATLAB\Lesson3\lesson3.fig
?????文件???????4493??2009-02-27?18:20??MATLAB\Lesson4\lesson4.m
?????文件???????3082??2009-02-27?18:20??MATLAB\Lesson4\lesson4.fig
?????文件?????730112??2009-02-27?19:25??MATLAB\精通MATLAB界面編程.doc
?????目錄??????????0??2009-02-27?16:15??MATLAB\Lesson1
?????目錄??????????0??2009-02-27?16:51??MATLAB\Lesson2
?????目錄??????????0??2009-02-27?17:03??MATLAB\Lesson3
?????目錄??????????0??2009-02-27?17:44??MATLAB\Lesson4
?????目錄??????????0??2009-02-27?16:15??MATLAB
-----------?---------??----------?-----??----
???????????????767280????????????????????14
- 上一篇:自適應核密度估計MATLAB源代碼
- 下一篇:FFBP的matlab代碼
評論
共有 條評論