Show value of a callback function in uicontrol text

2 vues (au cours des 30 derniers jours)
Sferle Alin-Tudor
Sferle Alin-Tudor le 23 Mai 2021
Commenté : Walter Roberson le 23 Mai 2021
Hi,
I have a function:
function x=func()
x=12;
end
and I want to use the returned value x in another function as a callback value in a uicontrol text.
  1 commentaire
Walter Roberson
Walter Roberson le 23 Mai 2021
x = func();
handles.NameOfUiControl.String = num2str(x);

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Tags

Produits


Version

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by