www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@modeldev/hasBestExportModel.m

    function [OK,type,icon] = hasBestExportModel(mdev)
%HASBESTEXPORTMODEL has response model for export
%    [OK,type,icon] = hasBestExportModel(T)

%  Copyright 2009-2013 The MathWorks, Inc. and Ford Global Technologies, Inc.

OK = hasBest(mdev);
type = '';
icon = '';
if OK
    type = 'Response';
    icon = cgrespath( iconfile(xregstatsmodel) );
elseif  strcmp(guid(mdev),'twostage') 
    % use point-by-point model
    locnode = children(mdev);
    OK= numChildren(mdev)==1 && ~isGTS(locnode.model) && locnode.hasBestExportModel;
    if OK
        type = 'Point-by-point';
        icon = cgrespath( iconfile(mbcPointByPointModel) );
    end
    
end