www.gusucode.com > sloptim工具箱matlab源码程序 > sloptim/sloptguis/@srogui/@GridSetForm/evalForm.m

    function uset = evalForm(this,varargin)
% Evaluates literal uncertainty specification in appropriate workspace.

%   Author(s): P. Gahinet
%   Copyright 1986-2012 The MathWorks, Inc.
np = length(this.Parameters);
Args = cell(2,np);
for ct=1:np
   Args{1,ct} = this.Parameters(ct).Name;
   [Args{2,ct},fail] = utEvalModelVar(this.Parameters(ct).Values,varargin{:});
   if fail
      ctrlMsgUtils.error('Sloptim:srogui:errEvalUncertain',Args{1,ct})
   end
end
uset = gridunc(Args{:});
uset.setOptimized(this.Optimized);