资源简介
通过图像处理的例子,实现matlab gui界面设计时撤销与反撤销功能的实现,原理简单,可扩展到任意操作。
代码片段和文件信息
function varargout = imagetext(varargin)
% IMAGETEXT MATLAB code for imagetext.fig
% IMAGETEXT by itself creates a new IMAGETEXT or raises the existing
% singleton*.
%
% H = IMAGETEXT returns the handle to a new IMAGETEXT or the handle to
% the existing singleton*.
%
% IMAGETEXT(‘CALLBACK‘hobjecteventDatahandles...) calls the local
% function named CALLBACK in IMAGETEXT.M with the given input arguments.
%
% IMAGETEXT(‘Property‘‘Value‘...) creates a new IMAGETEXT or raises the
% existing singleton*. Starting from the left property value pairs are
% applied to the GUI before imagetext_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to imagetext_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 imagetext
% Last Modified by GUIDE v2.5 15-Jun-2018 20:46:33
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @imagetext_OpeningFcn ...
‘gui_OutputFcn‘ @imagetext_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 imagetext is made visible.
function imagetext_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 imagetext (see VARARGIN)
% Choose default command line output for imagetext
handles.output = hobject;
% Update handles structure
guidata(hobject handles);
% UIWAIT makes imagetext wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = imagetext_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;
% --- Executes on button press in undo.
function undo_Callback(hobject eventdata handles)
% hobject handle to undo (see GCBO)
% eventdata reserved - to be defined in a f
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-06-15 21:10 gui设计撤销与反撤销简单例子\
文件 20821 2018-06-15 20:49 gui设计撤销与反撤销简单例子\imagetext.fig
文件 5436 2018-06-15 20:55 gui设计撤销与反撤销简单例子\imagetext.m
相关资源
- Matlab实现HHT程序(源码非常珍贵)
- 传递矩阵法matlab程序
- 信息隐藏,LSB隐写 matlab源代码
- 最小二乘法系统辨识matlab 程序
- BP神经网络的算法matlab代码
- 实现DS证据理论的Matlab源码
- 遗传算法matlab
- 基本粒子群算法MATLAB源代码
- 深度优先搜索matlab源程序代码
- 模糊聚类matlab源程序代码
- 背包问题遗传算法matlab源程序代码
- fisher判别matlab源程序代码
- 西安交通大学飞行控制系统作业-MAT
- 颜色特征提取matlab
- 简易学生成绩管理系统matlab程序
- 基于matlab的低通滤波器设计
- RVM相关向量机matlab源代码
- 基于MATLAB的车牌图像分割技术
-
Matlab_Simuli
nk 三相桥式全控整流电 - CV模型实现的matlab代码
- matlab计算图像周长,面积
- 蚁群算法的最短路径MATLAB程序
- matlab 自适应增强算法
- matlab 倾斜校正算法
- 图像预处理算法源码matlab
- 均匀直线阵方向图MATLAB仿真
- bfsk程序代码matlab
- 5节点的牛拉法潮流计算Matlab程序
- MATLAB2020a.txt
- 雷达系统建模与仿真的matlab程序
评论
共有 条评论