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

    function OK= canMLE(mdev)
%CANMLE GTS MLE methods can be run on this local node
%
% OK= canMLE(mdev)

%  Copyright 2006 The MathWorks, Inc. and Ford Global Technologies, Inc.

TS= BestModel(mdev);
if mdev.IsLinearised;
    OK = false;
elseif ~isempty(TS)
    OK= canMLE(TS);
else
    st= children(mdev,@status);
    if all([st{:}])
        L= model(mdev);
        OK= canMLE(model(mdev));
        if OK && DatumType(L)==3
            % check datumlink
            pdatum= datumlink(mdev);
            OK= pdatum.status && canGTS(pdatum.model);
        end
        mdls= children(mdev,@model);
        for i=1:length(mdls)
            OK= OK && canMLE(mdls{i});
        end
    else
        OK= false;
    end
end