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

    function ind = getLocalIndices(con)
%GETLOCALINDICES List of indices of the local factors in a two-stage constraint
%
%  I = GETLOCALINDICES(CON) is a list of the indices of the local factors of
%  the two-stage constraint C.
%
%  See also CONTWOSTAGE, 
%           CONTWOSTAGE/GETLOCALFACTORS, 
%           CONTWOSTAGE/GETGLOBALFACTORS, 
%           CONTWOSTAGE/GETGLOBALINDICES.

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

ai = getActiveIndices( con );
nf = nFactors( con.Local ); % number of local factors

ind = ai(1:nf);

%------------------------------------------------------------------------------|
% EOF
%------------------------------------------------------------------------------|