www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@designdev/DesignList.m

    function [dlist,index] = DesignList(D,Stage);
%DESIGNDEV/DESIGNLIST
%
% [dlist,index] = DesignList(D,Stage);

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

if nargin<2
    Stage= length(D);
end

% extract correct level
Dcell= DesignDev2Cell(D);
D= Dcell{Stage};

% get tree and extract list
dtree= D.DesignTree;
dlist= dtree.designs;
index=  dtree.chosen;