Taking push button data in GUI

Hi, i designed GUI normally, where there are four push buttons. Now i want to take the input from the push as the string defined in the button. And then pass it to another .m file. For example, if i push 'first one', then i want to store 'first one' string as an input, and pass it, like dialogue box. How should i do it ?

1 件のコメント

Adam
Adam 2019 年 9 月 17 日
Just get the 'String' property from your push button handle in its callback and pass it as an input argument to your other function. Whether it is in a different .m file or the same one makes no difference there. If it is a script rather than a function then turn it into a function for best usage.

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

回答 (0 件)

カテゴリ

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

タグ

質問済み:

2019 年 9 月 17 日

コメント済み:

2019 年 9 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by