store listbox selections in array after pushbutton is pressed

I have created a gui which contains a listbox and some pushbuttons. In the listbox, the user can select anywhere from 1 to multiple options. I would like to store the selections in an array after a pushbutton is pressed and output that array to another function.
Thanks

1 件のコメント

Jan
Jan 2011 年 8 月 7 日
What is your question? What have you done so far and which problem occurred?

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

回答 (1 件)

BhaTTa
BhaTTa 2024 年 10 月 26 日

0 投票

Hey @miner, you can achieve the above requirement by adding a callback logic to pushbutton.
Please refer to this documentation.

カテゴリ

ヘルプ センター および File ExchangeInteractive Control and Callbacks についてさらに検索

質問済み:

2011 年 8 月 7 日

回答済み:

2024 年 10 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by