📄 button.m
字号:
%
% Syntax: h = button(strCaption,intCoords,strCallback)
%
% Inputs: strCaption is a string containing the caption for the button. intCoords
% is the matrix [x y w h] specifying the position and size of the button.
% strCallback is a string containing the commands that are to be executed
% when the button is clicked.
%
% Result: h is a handle to a new PushButton uicontrol object
% see function body below for property values.
%
% Petur Snaeland, 25.04.1995
%
function [hButton] = Button(strCaption,intCoords,strCallback)
hButton = uicontrol( ...
'Style','pushbutton', ...
'Units','pixels', ...
'Position',intCoords, ...
'String',strCaption, ...
'Enable','on', ...
'Callback',strCallback );
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -