Quicky. re 'whos' and workspace.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Weitere Antworten (2)
Daniel Shub
am 28 Dez. 2011
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 Kommentare
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!