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;

我想知道这是什么,有什么用,讲了些什么啊?
展开
 我来答
小小小英子nice
2015-02-12
知道答主
回答量:5
采纳率:0%
帮助的人:2.8万
展开全部
这个是你在创建叫成绩的GUI界面时同时生成的M文件,你要根据你要实现的功能对各个控件的回调函数进行补充编写,例如你调加了一个按钮,你点击它的时候想要实现什么功能你就要在这个按钮的回调函数进行编程
桑榆花白
2017-04-06
知道答主
回答量:7
采纳率:0%
帮助的人:4973
展开全部
题主现在懂了吗?过去很久了,给贴个链接吧http://blog.csdn.net/zhaisharap/article/details/16856769(就是具体解释上面这些东西的)
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
钺联昱M
2014-08-24 · TA获得超过706个赞
知道小有建树答主
回答量:1789
采纳率:33%
帮助的人:899万
展开全部
需要加入模块 然后编写对应功能程序
追问
上面这些函数是干什么的?
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
bbhYBH
2014-08-25
知道答主
回答量:11
采纳率:0%
帮助的人:7.9万
展开全部
运行一下看看,是一个叫成绩的GUI应用。运行一下应该有一个界面
追问
大神们,我想知道的是上面的函数是干嘛的!里面写的是什么?
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(2)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式