www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgnode/name.m
function str = name(nd,newname) %NAME Return or set name for node % % N = NAME(NODE) % N = NAME(NODE, SUBITEM) % NODE = NAME(NODE, N); % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. % This method is overloaded to add support for the syntax % name(pItem, pSubItem) which is used in cage if nargin==1 || (nargin==2 && ~ischar(newname)) str = name(nd.mctree); else nd.mctree = name(nd.mctree, newname); pointer(nd); str = nd; end