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

    function y = Evaluate(mdl,X)
%EVALUATE evaluate a model
%
% y = EVALUATE(MODEL,X);
%
% See also mbcmodel.model.PEV, mbcmodel.model.PredictedValue

% Copyright 2006 The MathWorks, Inc.

% Better check that the model is correctly fitted
error( mdl.pAssertNotBeingEdited );
error( mdl.pAssertIsFitted() );

m = mdl.Object;
if ~isempty(m)
    y = EvalModel(m,X);
end