www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcmodel/@model/PredictedValue.m
function y = PredictedValue(obj, X) %PREDICTEDVALUE Calculate the model's predicted value at specified inputs. % % Y = PREDICTEDVALUE( MODEL ) % Y = PREDICTEDVALUE( MODEL, X ) % % See also mbcmodel.model.PEV, mbcmodel.response.PredictedValue, % mbcmodel.model.Evaluate % Copyright 2004-2006 The MathWorks, Inc. % Better check that the model is correctly fitted error( obj.pAssertNotBeingEdited() ); error( obj.pAssertIsFitted('This model is not correctly fitted and so cannot be evaluated') ); if nargin < 2 X = pGetData(obj); end y = obj.Object(X);