3 %> @brief Variable names in workspace matching
class
5 %> @param classname Class to match
6 %> @param input (optional) (may be either a
string with a
class name or an instance of such class)
7 %> Input
class to match. This is applicable only if @c classname is "
block" or descendant, and is not checked,
8 %> i.e., there will be an error
if you specify input but classname is not the name of a
block descendant
9 %> @
return A cell of
string containing the names of the variables in the workspace that match @c classname
12 classname = {classname};
14 flag_input = nargin > 1 && ~isempty(input);
15 if flag_input && ischar(input)
16 input = eval([input, '();']); % Creates instance of class whose name was given by input
18 vars0 = evalin('base', 'who');
21 flag_progress = n > 100;
30 var = evalin(
'base', [vars0{i},
';']);
31 if sum(arrayfun(@(cn) isa(var, cn{1}), classname)) > 0
39 flag_continue = any(cellfun(@(x) isa(input, x), ic));
43 vars{end+1} = vars0{i};
function progress2_change(in prgrss, in title, in perc, in i, in n)
function progress2_open(in title, in perc, in i, in n)
function get_excludevarnames()
function get_varnames(in classname, in input)
function progress2_close(in prgrss)
Analysis Session (AS) base class.