How to access a variable of one callback function in another function in gui?

I have browsed an image using a pushbutton and stored it in a variable(let it be 'sm'). Now I want this image('sm') in callback function of another pushbutton so that I convert that image here.

1 件のコメント

Stephen23
Stephen23 2018 年 3 月 6 日
If you are not using GUIDE I would recommend using nested functions: simple and intuitive. Otherwise use handles and guidata.

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

回答 (0 件)

カテゴリ

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

タグ

質問済み:

2018 年 3 月 6 日

コメント済み:

2018 年 3 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by