www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@coninputfactor/setUnits.m
function cif = setUnits(cif, units) %SETUNITS Set the symbols of a constraint input factor object % % CIF = SETUNITS(CIF, UNITS) % % UNITS must be cell-string with the same number of elements as CIF. % % See also CONBASE, CONINPUTFACTOR, CONINPUTFACTOR/GETUNITS. % Copyright 2004-2005 The MathWorks, Inc. % Ensure that we have a row units = units(:)'; % Check the size if iscellstr( units ) && length( units ) == length( cif ), cif.Unit = units; else error(message('mbc:coninputfactor:InvalidArguments17')); end %------------------------------------------------------------------------------| % EOF %------------------------------------------------------------------------------|