• 大小: 11KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-29
  • 语言: Matlab
  • 标签: MATLAB  GUI  计算器  

资源简介

matlab简易加法计算器 GUI制作,详细教程请看博客https://blog.csdn.net/weixin_44936771/article/details/107736979?utm_source=app

资源截图

代码片段和文件信息

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

% Last Modified by GUIDE v2.5 01-Aug-2020 20:59:20

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

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

% Update handles structure
guidata(hobject handles);

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


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

% Hints: get(hobject‘String‘) returns contents of edit1 as text
%        str2do

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        9590  2020-08-01 20:59  AND.fig
     文件        5902  2020-08-01 21:14  AND.m

评论

共有 条评论