www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcmodel/@fitalgorithm/getAlternativeNames.m

    function AltList = getAlternativeNames(OPT)
%GETALTERNATIVENAMES return a cell array of alternative algorithm names
%
% AltList = getAlternativeNames(F);
%   You can create an algorithm using MBCMODEL.FITALGORITHM.CREATEALGORITHM
%
% See also mbcmodel.fitalgorithm.CreateAlgorithm,
%  mbcmodel.fitalgorithm.IsAlternative 

%  Copyright 2006 The MathWorks, Inc. 


if ~isempty(OPT.Object)
    AltList = getAlternatives(OPT.Object);
    AltList = cellfun(@getname,AltList,'UniformOutput' , false);
    if isempty(AltList)
        % include name of current algorithm
        AltList = {OPT.Name};
    end
else
    AltList = {};
end