Get Values from a push button

12 Ansichten (letzte 30 Tage)
Swil
Swil am 6 Sep. 2016
Kommentiert: Adam am 6 Sep. 2016
Hey, This is my first time working with GUIs in MATLAB and essentially what I am trying to do is have a push button that when pressed generates two random numbers and places each number in its own specific text box. I believe I have it where the push button runs code to generate random numbers I am just unsure of how to get these numbers and place them in their respective text boxes. Thanks!
  3 Kommentare
Swil
Swil am 6 Sep. 2016
I am using GUIDE
Adam
Adam am 6 Sep. 2016
Then you just need to get hold of your text boxes by their tags in the pushbutton callback and set their 'String' property. There are numerous examples in the Help of accessing ui controls from within a callback.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by