finduimenu.m
来自「matlab处理图像的一些基本方法。其中有一部分mex程序需要安装编译」· M 代码 · 共 36 行
M
36 行
function ui=finduimenu(hfig)%FINDUIMENU Find all the uimenu in the figure%% UI=FINDUIMENU(HFIG)%% HFIG is the figure handle (default gcf)% UI is the vector of all the uimenu handles.%% Claudio Apr 10, 1995%%% Copyright (c) 1995 by Claudio Rivetti and Mark Young% claudio@alice.uoregon.edu, mark@alice.uoregon.edu%if nargin >1 error('Too many input arguments.');endif nargin == 0 hfig=gcf;endch=get(hfig, 'children');ui=[];for i=1:length(ch) type=get(ch(i), 'type'); if strcmp(type, 'uimenu') ui=[ui ch(i)]; endendreturn
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?