www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@mdevproject/getAllBoundaries.m
function [con, src] = getAllBoundaries(proj) %GETALLBOUNDARIES Get all boundary consrtaints from a project. % % [CON, SRC] = GETALLBOUNDARIES( TP) % % CON will be a cell array of constraint objects % SRC will a cell-string of names of the locations in the tree of the % boundary constraints. % % See also: MDEVTESTPLAN/GETALLBOUNDARIES. % Copyright 2005 The MathWorks, Inc. con = {}; src = {}; % Add the constraints from the children pChildren = children( proj ); for i = 1:length( pChildren ), [thisCon, thisSrc] = getAllBoundaries( pChildren(i).info ); con = [con, thisCon]; src = [src, thisSrc]; end