📄 findtag.m
字号:
%FINDTAG locate objects with specific tag%% FINDTAG(STR)% Locate objects with specific tag STR%% FINDTAG(OBJECT_HANDLES,STR) % Restricts the search to objects listed in objhandles and their descendants.%% FINDTAG(...,'-depth',d)% The depth argument d controls how many levels under the handles in objhandles % are traversed. Specify d as inf to get the default behavior of all levels.% Specify d as 0 to restrict to the objects listed in OBJECT_HANDLES.%% Rem: In order for this to work properly, the object's tag field must be a string % containing keywords (or tags) separated by commas.%%% See also% addtag, hastag, rmtag%% G.Rilling 12/2006% gabriel.rilling@ens-lyon.frfunction objs = findtag(varargin)if any(ishandle(varargin{1})) lobj = varargin{1}; tag = regexptranslate('escape',varargin{2}); objs = findobj(lobj,'-regexp','Tag',['(\W|^)',tag,'(\W|$)'],varargin{3:end});else tag = regexptranslate('escape',varargin{1}); objs = findobj('-regexp','Tag',['(\W|^)',tag,'(\W|$)'],varargin{2:end});end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -