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 个评论

What is your question? What have you done so far and which problem occurred?

请先登录,再进行评论。

回答(1 个)

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

类别

帮助中心File Exchange 中查找有关 Interactive 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