資源簡介
學習matlab的時候的實習內容。程序的旁邊有詳細的講解,并附帶了源碼和實例圖片,用GUI來實現的,不管是想學習matlab還是了解字符識別的原理,都是很不錯的參考!

代碼片段和文件信息
function?varargout?=?CAR1(varargin)
%?CAR1?M-file?for?CAR1.fig
%??????CAR1?by?itself?creates?a?new?CAR1?or?raises?the?existing
%??????singleton*.
%
%??????H?=?CAR1?returns?the?handle?to?a?new?CAR1?or?the?handle?to
%??????the?existing?singleton*.
%
%??????CAR1(‘CALLBACK‘hobjecteventDatahandles...)?calls?the?local
%??????function?named?CALLBACK?in?CAR1.M?with?the?given?input?arguments.
%
%??????CAR1(‘Property‘‘Value‘...)?creates?a?new?CAR1?or?raises?the
%??????existing?singleton*.??Starting?from?the?left?property?value?pairs?are
%??????applied?to?the?GUI?before?CAR1_OpeningFunction?gets?called.??An
%??????unrecognized?property?name?or?invalid?value?makes?property?application
%??????stop.??All?inputs?are?passed?to?CAR1_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
%?Copyright?2002-2003?The?MathWorks?Inc.
%?Edit?the?above?text?to?modify?the?response?to?help?CAR1
%?Last?Modified?by?GUIDE?v2.5?04-Aug-2011?21:47:47
%?Begin?initialization?code?-?DO?NOT?EDIT
gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
???????????????????‘gui_Singleton‘??gui_Singleton?...
???????????????????‘gui_OpeningFcn‘?@CAR1_OpeningFcn?...
???????????????????‘gui_OutputFcn‘??@CAR1_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?CAR1?is?made?visible.
function?CAR1_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?CAR1?(see?VARARGIN)
%?Choose?default?command?line?output?for?CAR1
handles.output?=?hobject;
%以下代碼為手工添加,表示使用handles結構體來保存圖形界面中各種對象的句柄,或者中間結果,這些句柄或者中間結果在創建圖形對象或運算中產生,
%需要在以后的回調函數中多次用到,所以這里的作用類似于全局變量的作用,用來進行數據的傳遞。
handles.imgIn?=?[];?
handles.imgOut?=?[];
handles.flag?=?0;%判斷標志
handles.pos?=?[];%圖形對象所在位置
handles.lef?=?1;
handles.top?=?1;
handles.wid?=?0;
handles.hig?=?0;
%?Update?handles?structure
guidata(hobject?handles);
%?UIWAIT?makes?CAR1?wait?for?user?response?(see?UIRESUME)
%?uiwait(handles.figure1);
%?---?Outputs?from?this?function?are?returned?to?the?command?line.
function?varargout?=?CAR1_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?a
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????122??2007-05-19?11:59??CAR\0.bmp
?????文件???????1560??2007-06-06?09:56??CAR\1.bmp
?????文件???????7120??2011-08-04?21:30??CAR\car.asv
?????文件?????438282??2007-05-15?21:34??CAR\car.bmp
?????文件??????16643??2011-08-05?17:02??CAR\CAR1.asv
?????文件???????1754??2011-08-04?21:48??CAR\CAR1.fig
?????文件??????16643??2011-08-05?17:03??CAR\CAR1.m
?????文件???????1198??2007-05-19?15:20??CAR\char_M.bmp
?????文件???????1560??2007-06-06?09:58??CAR\FY10_-.bmp
?????文件???????1560??2007-06-06?09:50??CAR\FY10_3.bmp
?????文件???????1560??2007-06-06?10:13??CAR\FY10_4.bmp
?????文件???????1560??2007-06-06?10:07??CAR\FY10_5.bmp
?????文件???????1560??2007-06-06?08:46??CAR\FY10_D.bmp
?????文件????????122??2007-05-19?11:56??CAR\FY10_F.bmp
?????文件????????122??2007-05-19?11:57??CAR\FY10_M.bmp
?????文件???????1560??2007-06-06?08:34??CAR\FY10_N.bmp
?????文件????????122??2007-05-19?11:55??CAR\FY10_P.bmp
?????文件??????38936??2007-05-31?11:25??CAR\img1032.jpg
?????文件????????935??2005-05-19?08:49??CAR\JudgeAnalysis.m
?????文件??????66850??2007-08-06?15:22??CAR\ordinary?numbers?-?front.JPG
?????文件????????396??2007-06-06?09:11??CAR\recognition.m
?????目錄??????????0??2008-12-20?20:31??CAR
-----------?---------??----------?-----??----
???????????????600165????????????????????22
- 上一篇:matlab實現kd_tree
- 下一篇:chameleon算法(matlab)
評論
共有 條評論