How do u check for the existence of a variable in base workspace from main GUI file?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How do u check for the existence of a variable in base workspace from main GUI file?
0 commentaires
Réponses (1)
the cyclist
le 25 Avr 2013
Modifié(e) : the cyclist
le 25 Avr 2013
I am not very knowledgeable about GUIs, so there is almost certainly a better way, but one way to do this would be with the evalin() function. Specifically, I think you could check for the existence of the variable x with
>> tf = evalin('base','exist(''x'')')
Type
>> doc evalin
for details.
0 commentaires
Voir également
Catégories
En savoir plus sur Environment and Settings 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!