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

4 views (last 30 days)
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

Accepted Answer

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

Sign in to comment.

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!