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

    function p=getprimarysubitem(nd)
%GETPRIMARYSUBITEM  Return the preferred subitem for viewing
%
%  P=GETPRIMARYSUBITEM(ND) returns a pointer to the subitem which 
%  is the preferred start point if ND is the current node
%

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.


% DD returns first item in list
if ~isempty(nd.ptrlist)
	p=nd.ptrlist(1);
else
	p = xregpointer;
end