好文档 - 专业文书写作范文服务资料分享网站

(完整版)MATLABGUI设计学习手记(3版)源代码

天下 分享 时间: 加入收藏 我要投稿 点赞

function varargout = example6_1_1(varargin) gui_Singleton = 1;

gui_State = struct('gui_Name', mfilename, ...

'gui_Singleton', gui_Singleton, ...

'gui_OpeningFcn', @example6_1_1_OpeningFcn, ... 'gui_OutputFcn', @example6_1_1_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

function example6_1_1_OpeningFcn(hObject, eventdata, handles, varargin) handles.output = hObject; guidata(hObject, handles);

function varargout = example6_1_1_OutputFcn(hObject, eventdata, handles) varargout{1} = handles.output;

function pushbutton1_ButtonDownFcn(hObject, eventdata, handles) c = get(hObject,'foreg');%foregroundcolor的简写 c_user = uisetcolor(c, '选择颜色'); set(hObject, 'foreg', c_user)

MATLAB GUI设计学习手记(3

(完整版)MATLABGUI设计学习手记(3版)源代码

functionvarargout=example6_1_1(varargin)gui_Singleton=1;gui_State=struct('gui_Name',mfilename,...'gui_Singleton',gui_Singleton,...
推荐度:
点击下载文档文档为doc格式
64aw10avo11is530855j3blzb1bwa600hm7
领取福利

微信扫码领取福利

微信扫码分享