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

    function  resetVariables(LT, Variables, saveval)
%RESETVARIABLES Reset variable values
%
%  RESETVARIABLES(TBL, VARS, SAVED_VALS) sets VARS to have their saved
%  values.

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


if ~isempty(Variables)
    hVals = parrayeval(Variables(:), @setvalue, {saveval(:)});
    % assign to heap
    passign(Variables,hVals);
end