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

4 ビュー (過去 30 日間)
Wim Boer
Wim Boer 2017 年 11 月 25 日
コメント済み: Matt J 2017 年 12 月 6 日
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

採用された回答

Matt J
Matt J 2017 年 11 月 25 日
app.listbox1.Value
  4 件のコメント
Wim Boer
Wim Boer 2017 年 12 月 6 日
Thanks a lot!
Matt J
Matt J 2017 年 12 月 6 日
You're welcome, but please click "Accept" if you got the info you needed.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by