menuitem.m

来自「为了下载东西」· M 代码 · 共 21 行

M
21
字号
%
%  Syntax:  h = menuitem(hParent,strCaption,strCallback)
%
%  Inputs:  hParent is a handle to the item to which the new menuitem
%           is to be added.  strCaption is a string containing the caption
%           for the menuitem.  strCallback is a string containing the 
%           commands that are to be executed when the menuitem is chosen. 
%
%  Result:  h is a handle to a new uimenu object that has been added to the
%           figure, menubar or menuitem hParent.
%
%           Petur Snaeland, 25.04.1995.
%
function [hMenu] = menuitem(hParent,strCaption,strCallback);

hMenu = uimenu(hParent, ...
        'Label',strCaption, ...
        'Callback',strCallback);


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?