MATLAB: Base workspace variable name

base workspace variable name

Is there any command to get the base workspace variable name ?

Best Answer

S = whos;
varname = {S.name};