?? hastag.m
字號(hào):
%HASTAG tests if an object has a specific tag%% BOOL = HASTAG(OBJ_HANDLE,STR)% % Tests if the object corresponding to OBJ_HANDLE has the tag STR.% When OBJ_HANDLE is an array of handles HASTAG returns a logical array of% the same size.% % 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, findtag, rmtag%% G.Rilling 12/2006% gabriel.rilling@ens-lyon.frfunction bool=hastag(obj,str)tag = get(obj,'Tag');tmp = regexp(tag,['(\W|^)',str,'(\W|$)'],'once');if iscell(tmp) bool = ~cellfun(@isempty,tmp);else bool = ~isempty(tmp);end
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -