finduicontrols.m

来自「matlab处理图像的一些基本方法。其中有一部分mex程序需要安装编译」· M 代码 · 共 35 行

M
35
字号
function ui=finduicontrols(hfig)%FINDUICONTROLS Find all the uicontrols in the figure%%	UI=FINDUICONTROLS(HFIG)%%	HFIG is the figure handle (default gcf)%	UI is the vector of all the uicontrols 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');for i=1:length(ch)  type=get(ch(i), 'type');  if strcmp(type, 'uicontrol')    ui=[ui ch(i)];  endendreturn

⌨️ 快捷键说明

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