www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgproject/filterbytype.m
function nodes=filterbytype(P,TP) %FILTERBYTYPE Filter out nodes from project using type object % % NODES = FILTERBYTYPE(P,TP) returns a cell array of node objects that are % direct children of the project and match the specified type, TP. % Copyright 2000-2008 The MathWorks, Inc. and Ford Global Technologies, Inc. nodes = children(P); if ~isempty(nodes) nodes = infoarray(TP.filterlist(nodes)); else nodes = {}; end