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

    function obj = pInitialise(obj, LM)
%PINITIALISE Private function.
%
%   PINITIALISE( MODEL, XREGLINEAR )

%   Copyright 2004-2006 The MathWorks, Inc.
%       .

% Potentially more checking here to distinguish different response types
if isa(LM, 'xreglinear')
    obj.super(mfilename('fullpath'), LM);
else
    error('mbc:mbcmodel:linearmodel:InvalidArgument', 'Input to the initialisation of this object must be a valid MBC linear model object');
end