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

    function con = setInputFactors(con, cif)
%SETINPUTFACTORS Set the input factors for a constraint
%
%  CON = SETINPUTFACTORS(CON, CIF)
%
%  This method is used to change the properties, i.e., names, symbols or
%  ranges, of the input factors. To change the number or the order of
%  inputs, use SETMATCHEDFACTORS
%
%  See also CONBASE, CONINPUTFACTOR, 
%           CONBASE/GETINPUTFACTORS,
%           CONBASE/GETACTIVEINDICES,
%           CONBASE/SETMATCHEDFACTORS.

%  Copyright 2004-2005 The MathWorks, Inc.

if length( cif ) == nFactors( con ),
    con.InputFactors = cif;
else
    error(message('mbc:conbase:InvalidArgument5'));
end

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