www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgexprgui/@TableCreator/pGetExistingVars.m

    function VarNames = pGetExistingVars(obj)
%PGETEXISTINGVARS Return a list of known existing variable names
%
%  PGETEXISTINGVARS(OBJ) returns a cell array containing all of the known
%  pre-existing variable names.  This is taken from the Variable Dictionary
%  if it has been provided, otherwise it will be empty.

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


if isempty(obj.VariableDictionary)
    VarNames = {};
else
    VarNames = listnames(obj.VariableDictionary.info);
end