How to access a text in that edit text area in GUI

1 visualizzazione (ultimi 30 giorni)
cse batch4
cse batch4 il 18 Mar 2015
Risposto: Stephen23 il 22 Mar 2015
How to access a text in that edit text area in GUI
  2 Commenti
Geoff Hayes
Geoff Hayes il 22 Mar 2015
Rather than copying and pasting the title to your question to the question body, why not provide some context? Are you trying to access an edit text field in a GUI from within the callback of some other control?
Stephen23
Stephen23 il 22 Mar 2015
@cse batch4: if you want advice then we need to know some details of the code, or even better the actual code itself. You can upload code using the paperclip button above the textbox.

Accedi per commentare.

Risposte (1)

Stephen23
Stephen23 il 22 Mar 2015
If h is the handle of a uicontrol object, then this code will get its text:
get(h,'String')
There is a list of what this string corresponds to for all uicontrol types in the uicontrol properties documentation.

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by