matlab图像去噪程序.doc
文本预览下载声明
function varargout = jiemian(varargin) %返回从函数jiemian.m中得到的参数中变量的数目;传递一个参数中变量的数目给函数jiemian.m。
% JIEMIAN Application M-file for jiemian.fig
% FIG = JIEMIAN launch jiemian GUI.
% JIEMIAN(callback_name, ...) invoke the named callback.
% Last Modified by shijiawei v2.5 24-May-2014 02:45:18
if nargin == 0 % LAUNCH GUI %nargin 显示输入变量
fig = openfig(mfilename,reuse); %打开包含在FIG文件filename.fig中的图形,确保它是可见的并且完全定位在屏幕上。
% Generate a structure of handles to pass to callbacks, and store it.
handles = guihandles(fig); %返回一个结构,它包含图像中对象的句柄
guidata(fig, handles); %将变量handles存储到fig文件中
if nargout 0 %如果输出变量大于0
varargout{1} = fig; %返回fig
end
elseif ischar(varargin{1}) % INVOKE NAMED SUBFUNCTION OR CALLBACK %如果varargin{1}是一个字符数组则返回逻辑真(1),否则返回逻辑假(0)。
try
if (nargout) %显示用户提供的输出变量的个数
[varargout{1:nargout}] = feval(varargin{:}); % FEVAL switchyard %varargout传递参数中的变量数目
else
feval(varargin{:}); % FEVAL switchyard %**feval函数的求值
end
catch %如果出错开始执行catch块
disp(lasterr); %%%% lasterr函数查询出错原因。如果函数lasterr的运行结果为一个空串,则表明组命令1被成功执行了
%%%% disp 显示矩阵和文字内容
end
end
%| ABOUT CALLBACKS:
%| GUIDE automatically appends subfunction prototypes to this file, and
%| sets objects callback properties to call them through the FEVAL
%| switchyard above. This comment describes that mechanism.
%|
%| Each callback subfunction declaration has the following form:
%| SUBFUNCTION_NAME(H, EVENTDATA, HANDLES, VARARGIN)
%|
%| The subfunction name is composed using the objects Tag and the
%| callback type separated by _, e.g. slider2_Callback,
%| figure1_CloseRequestFcn, axis1_ButtondownFcn.
%|
%| H is the callback objects handle (obtained using GCBO).
%|
%| EVENTDATA is empty, but reserved for future use.
%|
%| HANDLES is a structure containing handles of components in GUI using
%| tags as fieldnames, e.g. handles.figure1, handles.slider2. This
%| structure is created at GUI startup using GUIHANDLES and s
显示全部