Effacer les filtres
Effacer les filtres

Pass variable from one callback to another

9 vues (au cours des 30 derniers jours)
Aditya
Aditya le 18 Jan 2014
Commenté : Alexei le 14 Nov 2014
Hey guys, I wanted to know how to pass the value of a variable from one callback function to another withing the same GUI. Thanks.
  3 commentaires
Jan
Jan le 18 Jan 2014
@Vivek: No, don't do this. Poluting the base workspace is a really bad idea.
Alexei
Alexei le 14 Nov 2014
Why, what's wrong with putting a variable in the workspace? Why is that "polluting"?

Connectez-vous pour commenter.

Réponse acceptée

Jan
Jan le 18 Jan 2014
Modifié(e) : Jan le 18 Jan 2014
This topic has been discussed very frequently, such that searching will be useful:
You will find many suggestions concerning the commands setappdata and guidata, which both store the variables locally in the GUI.
  1 commentaire
Vivek
Vivek le 31 Jan 2014
Now I am clear. Thanq

Connectez-vous pour commenter.

Plus de réponses (0)

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!

Translated by