Base workspace variable name
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Gopalakrishnan venkatesan
le 4 Déc 2015
Modifié(e) : Gopalakrishnan venkatesan
le 4 Déc 2015
Is there any command to get the base workspace variable name ?
2 commentaires
Guillaume
le 4 Déc 2015
In which contest? within a function? Which variable? All of them? An input to a function?
Réponse acceptée
Thorsten
le 4 Déc 2015
Modifié(e) : Thorsten
le 4 Déc 2015
S = whos;
varname = {S.name};
5 commentaires
Guillaume
le 4 Déc 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?
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Scope Variables and Generate Names dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!