资源简介

看完后,保证你已经掌握了MATLAB、GUIDE界面编程,如果不会,请登录我的博客:http://hi.baidu.com/pengjun来留言,我帮助你解决。 另外的工具栏和菜单栏的编程也比较简单,就没有写上去,如果有谁用到,而不会的话,可以通知我一声。

资源截图

代码片段和文件信息

function varargout = lesson1(varargin)
% LESSON1 M-file for lesson1.fig
%      LESSON1 by itself creates a new LESSON1 or raises the existing
%      singleton*.
%
%      H = LESSON1 returns the handle to a new LESSON1 or the handle to
%      the existing singleton*.
%
%      LESSON1(‘CALLBACK‘hobjecteventDatahandles...) calls the local
%      function named CALLBACK in LESSON1.M with the given input arguments.
%
%      LESSON1(‘Property‘‘Value‘...) creates a new LESSON1 or raises the
%      existing singleton*.  Starting from the left property value pairs are
%      applied to the GUI before lesson1_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to lesson1_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 lesson1

% Last Modified by GUIDE v2.5 27-Feb-2009 15:53:18

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘       mfilename ...
                   ‘gui_Singleton‘  gui_Singleton ...
                   ‘gui_OpeningFcn‘ @lesson1_OpeningFcn ...
                   ‘gui_OutputFcn‘  @lesson1_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 lesson1 is made visible.
function lesson1_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 lesson1 (see VARARGIN)

% Choose default command line output for lesson1
handles.output = hobject;

% Update handles structure
guidata(hobject handles);

% UIWAIT makes lesson1 wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = lesson1_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 edtNumber1_Callback(hobject eventdata handles)
% hobject    handle to edtNumber1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (s

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2914  2009-02-27 16:51  MATLAB\Lesson1\lesson1.fig

     文件       5218  2009-02-27 16:47  MATLAB\Lesson1\lesson1.m

     文件       4056  2009-02-27 16:58  MATLAB\Lesson2\lesson2.m

     文件       5410  2009-02-27 17:03  MATLAB\Lesson2\lesson2.fig

     文件       7218  2009-02-27 17:32  MATLAB\Lesson3\lesson3.m

     文件       4777  2009-02-27 17:44  MATLAB\Lesson3\lesson3.fig

     文件       4493  2009-02-27 18:20  MATLAB\Lesson4\lesson4.m

     文件       3082  2009-02-27 18:20  MATLAB\Lesson4\lesson4.fig

     文件     730112  2009-02-27 19:25  MATLAB\精通MATLAB界面编程.doc

     目录          0  2009-02-27 16:15  MATLAB\Lesson1

     目录          0  2009-02-27 16:51  MATLAB\Lesson2

     目录          0  2009-02-27 17:03  MATLAB\Lesson3

     目录          0  2009-02-27 17:44  MATLAB\Lesson4

     目录          0  2009-02-27 16:15  MATLAB

----------- ---------  ---------- -----  ----

               767280                    14


评论

共有 条评论