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

    function lc = getlocal( con, beta )
%GETLOCAL Forms a local constraint from the a two-stage  boundary constraint.
%
%  LC = GETLOCAL(TSC) is the local constraint part of the two-stage
%  constraint TSC.
%  LC = GETLOCAL(TSC,PARAMS) uses PARAMS to form the local constraint

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

if nargin < 2,
    lc = con.Local;
else
    lc = setFeatures( con.Local, beta );
    if ~isempty( con.LocalFriend ),
        lc = pMapToNaturalUnits( lc, con.LocalFriend );
    end
end