www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgddnode/deletevariablestore.m

    function obj = deletevariablestore(obj, storekey, exceptions)
%DELETEVARIABLESTORE Remove specified stores from all variables
%
%  OBJ = DELETEVARIABLESTORE(OBJ, STOREKEY) iterates over all of the
%  variables and removes the store specified by STOREKEY.
%
%  OBJ = DELETEVARIABLESTORE(OBJ, STOREKEY, VAREXCEPTIONS) excludes the
%  variables listed in the xregpointer vector VAREXCEPTIONS from the
%  deletion process.

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


if nargin>2
    varptrs = setdiff(obj.ptrlist, exceptions);
else
    varptrs = obj.ptrlist;
end
passign(varptrs, pveceval(varptrs, @removestore, storekey));