www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgnode/gettype.m

    function tp = gettype(obj)
%GETTYPE Return the type description of a node
%
%  TP = GETTYPE(OBJ) returns a short (one or two words) string that
%  describes the type of a node.  The default implementation returns the
%  TypeString property of the node's typobject.

%  Copyright 2005 The MathWorks, Inc.


tpobj = typeobject(obj);
tp = tpobj.TypeString;