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

    function [rfvals,stderr] = Evaluate(RF)
%EVALUATE evaluate response features
%
% rfvals = Evaluate(RF);
%    returns the values for the response features for the current
%    local model. 
% [rfvals,stderr] = Evaluate(RF);
%    also returns the standard errors for the response features for the current
%    local model. 
%   The local model must be fitted before evaluating response features.
% 
% See also mbcmodel.responsefeatures.Jacobian,
% mbcmodel.responsefeatures.Covariance,
% mbcmodel.responsefeatures.Correlation

% Copyright 2007 The MathWorks, Inc.

if RF.IsFitted
    rfvals = evalfeatures(RF.Object)';
    if nargout>1
        c = Covariance(RF);
        stderr = sqrt(diag(c));
    end
else
    error(message('mbc:mbcmodel:responsefeatures:InvalidState2'))
end