isobj.m

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

M
28
字号
function boolean  = isobj(handle,currobj)%ISOBJ	True for objects%       ISOBJ(X) returns 1's where the elements of X are% 		valid handles and 0's where they are not.% % Keith Rogers 11/30/93if nargin == 1,	currobj = 0;end
if isempty(handle)   boolean = 0;
   return;end      boolean = (handle == currobj);if(strcmp(get(currobj,'Type'),'axes'));	boolean = boolean | (handle == get(currobj,'xlabel'));	boolean = boolean | (handle == get(currobj,'ylabel'));	boolean = boolean | (handle == get(currobj,'zlabel'));	boolean = boolean | (handle == get(currobj,'title'));endchildren = get(currobj,'Children');if(children)	for i = 1:length(children)		boolean = boolean | isobj(handle,children(i));	endend

⌨️ 快捷键说明

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