Quicky. re 'whos' and workspace.
1 回表示 (過去 30 日間)
古いコメントを表示
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
0 件のコメント
採用された回答
その他の回答 (2 件)
Daniel Shub
2011 年 12 月 28 日
I am not sure why you want to do whos in the base or caller workspace, but my guess is that you might want something like
doc inputname
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!