www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@conswitch/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-2008 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin < 2, lc = con.ConList{1}; else if beta>0 && beta<=length(con.ConList) lc = con.ConList{beta}; else lc = []; end end