MATLAB: Quicky. re ‘whos’ and workspace.

whos

Hi,
What is the location/path of the workspace or how do I 'whos' my workspace from within a function.
If I from within a function…
x = whos;
I get a list of variables/arrays declared within function.
x = whos('global');
I get variables/arrays declared globally.
What I want is same result as if I ran 'whos' from the command prompt, ie my workspace
>>x = whos;
Thanks, happy holiday, Christmas or drinking.
Regards,
AD

Best Answer

x=evalin('base','whos')