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

    function symbols = getSymbols(cif)
%GETSYMBOLS Get the symbols from a constraint input factor object
%
%  SYMBOLS = GETSYMBOLS(CIF)
%
%  SYMBOLS will be cell-string.
%  If the symbols field for any factor is empty then the name is substituted.
%
%  See also CONBASE, CONINPUTFACTOR, CONINPUTFACTOR/SETSYMBOLS.

%  Copyright 2004-2005 The MathWorks, Inc.

symbols = cif.Symbol;

i = cellfun( 'isempty', symbols );
if any( i ),
    symbols(i) = cif.Name(i);
end

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