How to get Handle of an list's element selected in AppDesigner?

4 Ansichten (letzte 30 Tage)
Wim Boer
Wim Boer am 25 Nov. 2017
Kommentiert: Matt J am 6 Dez. 2017
Dear Matlab community,
In GUIDE it was easy to get the string and value of a element selected in e.g. a ListBox. In AppDesigner however I am only able to get the string. I can only indirecly get the value using strcmp.
In GUIDE:
function listbox1_Callback(hObject, eventdata, handles)
index_selected = get(hObject,'Value');
How to get the value of the ListBox in AppDesigner??
Regards, Wim

Akzeptierte Antwort

Matt J
Matt J am 25 Nov. 2017
app.listbox1.Value
  4 Kommentare
Matt J
Matt J am 6 Dez. 2017
You're welcome, but please click "Accept" if you got the info you needed.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by