www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgfuncexpr/evalAtInputs.m

    function out = evalAtInputs(obj, inputs)
%EVALATINPUTS Evaluate expression at given input values.
%
%  OUT = EVALATINPUTS(OBJ, INPUTS) returns the value of the expression at
%  the inputs values in INPUTS.  Function expressions pass on the
%  evaluation to the function model that is within them.

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.


if isempty(obj.function)
    out = NaN;
else
    out = EvalModel(obj.function, inputs);
end