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

    function  obj = constructMBCModel(mdev,varargin)
%constructMBCModel construct function for command-line interface
%    obj = constructMBCModel(mdev,varargin)

%   Copyright 2015-2015 The MathWorks, Inc.


switch guid(mdev)
    case 'global'
        f = @mbcmodel.response;
    case 'twostage'
        f = @mbcmodel.hierarchicalresponse;
    case 'testplan'
        f = @mbcmodel.testplan;
    case 'ptbypt'
        f = @mbcmodel.localresponse;
    case 'local'
        f = @mbcmodel.localresponse;
    case 'project'
        f = @mbcmodel.project;
    otherwise
        error('mbc:mbcmodel:UnknownNode','Unknown MBC node');
end


obj = f(mdev,varargin{:});