Base workspace variable name
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Gopalakrishnan venkatesan
am 4 Dez. 2015
Bearbeitet: Gopalakrishnan venkatesan
am 4 Dez. 2015
Is there any command to get the base workspace variable name ?
2 Kommentare
Guillaume
am 4 Dez. 2015
In which contest? within a function? Which variable? All of them? An input to a function?
Akzeptierte Antwort
Thorsten
am 4 Dez. 2015
Bearbeitet: Thorsten
am 4 Dez. 2015
S = whos;
varname = {S.name};
5 Kommentare
Guillaume
am 4 Dez. 2015
"use evalin": Here be dragons. Do not go down that path unless you know what you're doing and know all the pitfalls of using eval and its friends.
For what reasons do you want to have the list of variables in the base workspace?
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Scope Variables and Generate Names 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!