资源简介
学习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)
相关资源
- chameleon算法(matlab)
- matlab实现kd_tree
- 信号功率谱估值及Matlab代码,仿真结
- 二维sinc函数的图像
- mimo v-blast 仿真
- 使用Matlab进行多幅图像合成
- music算法matlab程序
- matlab 线性调频信号匹配滤波
- QPSK系统的误码率和星座图仿真
- 基于Matlab的逆变电源仿真
- 边界跟踪算法 输入是一幅图像,输出
- MATLAB GUI函数查询
- UPS的matlab仿真
- 陷波滤波器matlab程序
- 基于二维DCT的自适应水印算法matlab实
- rls算法自适应均衡器matlab实现
- 《智能优化算法及其MATLAB-(第2版)》
- matlab程序将年月日转换成当年的天数
- MATLAB 后向投影成像算法
- matlab仿真实现MSK
- Matlab实现LSB算法源代码 有窗口 可添加
- 基于matlab的井字棋
- NSGA-II matlab 源码
- MATLAB实现的LSBMLSB Matching算法含界面和
- 波形发生并生成十进制和二进制的T
-
基于Matlab_Simuli
nk的随机路面建模与 - 基于Matlab工具的遗传算法求解有约束
- EM算法matlab实现
- [网盘]卡尔曼滤波原理及应用MATLAB仿真
- 自适应滤波-matlab完整程序
评论
共有 条评论