From: Thomas Vanaret on
Hi

You should have a look to Matlab "who" function.

>> list = who

returns the list of variables in the workspace as a cell array. You can then find easily the position of a specific variable name in that list by doing :

>> ind = find(strcmp(list, 'variable_name'))

See also "whos" function