MATLAB的GUI里面讲了什么 10
打开GUI,同时跳出一个文件,内容是:functionvarargout=chengji(varargin)%CHENGJIM-fileforchengji.fig%CH...
打开GUI,同时跳出一个文件,内容是:
function varargout = chengji(varargin)
% CHENGJI M-file for chengji.fig
% CHENGJI, by itself, creates a new CHENGJI or raises the existing
% singleton*.
%
% H = CHENGJI returns the handle to a new CHENGJI or the handle to
% the existing singleton*.
%
% CHENGJI('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in CHENGJI.M with the given input arguments.
%
% CHENGJI('Property','Value',...) creates a new CHENGJI or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before chengji_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to chengji_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 chengji
% Last Modified by GUIDE v2.5 24-Aug-2014 15:02:07
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @chengji_OpeningFcn, ...
'gui_OutputFcn', @chengji_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 chengji is made visible.
function chengji_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 chengji (see VARARGIN)
% Choose default command line output for chengji
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes chengji wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = chengji_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;
我想知道这是什么,有什么用,讲了些什么啊? 展开
function varargout = chengji(varargin)
% CHENGJI M-file for chengji.fig
% CHENGJI, by itself, creates a new CHENGJI or raises the existing
% singleton*.
%
% H = CHENGJI returns the handle to a new CHENGJI or the handle to
% the existing singleton*.
%
% CHENGJI('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in CHENGJI.M with the given input arguments.
%
% CHENGJI('Property','Value',...) creates a new CHENGJI or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before chengji_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to chengji_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 chengji
% Last Modified by GUIDE v2.5 24-Aug-2014 15:02:07
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @chengji_OpeningFcn, ...
'gui_OutputFcn', @chengji_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 chengji is made visible.
function chengji_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 chengji (see VARARGIN)
% Choose default command line output for chengji
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes chengji wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = chengji_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;
我想知道这是什么,有什么用,讲了些什么啊? 展开
4个回答
展开全部
题主现在懂了吗?过去很久了,给贴个链接吧http://blog.csdn.net/zhaisharap/article/details/16856769(就是具体解释上面这些东西的)
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
需要加入模块 然后编写对应功能程序
追问
上面这些函数是干什么的?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
运行一下看看,是一个叫成绩的GUI应用。运行一下应该有一个界面
追问
大神们,我想知道的是上面的函数是干嘛的!里面写的是什么?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询