关于GUI界面的小练习:
程序:
(在GUI编辑界面->view->editor,可以打开默认给出的GUI界面的函数,直接在函数体内部自己编写内容即可)
function varargout = apple(varargin)
% APPLE MATLAB code for apple.fig
% APPLE, by itself, creates a new APPLE or raises the existing
% singleton*.
%
% H = APPLE returns the handle to a new APPLE or the handle to
% the existing singleton*.
%
% APPLE('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in APPLE.M with the given input arguments.
%
% APPLE('Property','Value',...) creates a new APPLE or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before apple_OpeningFcn gets called. An
% unrecognized