资源简介
很小很简单的程序,适合初学者。函数的应用很典型。
代码片段和文件信息
function varargout = q(varargin)
% Q M-file for q.fig
% Q by itself creates a new Q or raises the existing
% singleton*.
%
% H = Q returns the handle to a new Q or the handle to
% the existing singleton*.
%
% Q(‘CALLBACK‘hobjecteventDatahandles...) calls the local
% function named CALLBACK in Q.M with the given input arguments.
%
% Q(‘Property‘‘Value‘...) creates a new Q or raises the
% existing singleton*. Starting from the left property value pairs are
% applied to the GUI before q_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to q_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 q
% Last Modified by GUIDE v2.5 15-Oct-2012 23:10:08
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @q_OpeningFcn ...
‘gui_OutputFcn‘ @q_OutputFcn ...
‘gui_LayoutFcn‘ [] ...
‘gui_Callback‘ []);
if nargin & isstr(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 q is made visible.
function q_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 q (see VARARGIN)
% Choose default command line output for q
handles.output = hobject;
% Update handles structure
guidata(hobject handles);
% UIWAIT makes q wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = q_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 during object creation after setting all properties.
function edit1_CreateFcn(hobject eventdata handles)
% hobject handle to edit1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until afte
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 23040 2012-10-15 23:23 q.fig
文件 7564 2012-10-16 19:52 q.m
- 上一篇:EDA课程设计之汽车尾灯设计
- 下一篇:AP聚类Matlab程序
评论
共有 条评论