Import code to buttons in matlab

How can we link any code to any button in Matlab. For example code for hide some information in image after import the image in the interface.

 採用された回答

Walter Roberson
Walter Roberson 2016 年 4 月 16 日

0 投票

Put the code into a function. Set the Callback of the uicontrol to call the function.
function MyProject_push1_Callback(hObject, event, handles)
my_steganography_function();

1 件のコメント

Redha
Redha 2016 年 4 月 16 日
We import the image in axes and we have edit text box for the information. The text would be hidden inside the image. We would like the button to execute the code for hiding the text inside the image.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeImages についてさらに検索

質問済み:

2016 年 4 月 16 日

コメント済み:

2016 年 4 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by