MATLAB: How to get Handle of an list’s element selected in AppDesigner

listboxvalue

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

Best Answer

app.listbox1.Value