How do i can return a value calculated by pushbutton by a second pushbutton ?

7 ビュー (過去 30 日間)
Hadi Hijazi
Hadi Hijazi 2016 年 12 月 19 日
コメント済み: Hadi Hijazi 2016 年 12 月 19 日
Hello,
I'm using gui matlab to create an interface by which i can import an image, analyse it and calculate a value using a pushbutton1. The problem is I don't know how i can get the value calculated and display it using another pushbotton!
Thank you
Hadi

採用された回答

Adam
Adam 2016 年 12 月 19 日

その他の回答 (1 件)

Hadi Hijazi
Hadi Hijazi 2016 年 12 月 19 日
Thank you Adam for your answer, but i did not find the solution for my problem in the link you sent. I just want to callback the value calculated by pushbutton1 and display it in a textbox using a pushbutton2!
  2 件のコメント
Adam
Adam 2016 年 12 月 19 日
The whole link contains information about sharing data between callbacks which is what you are trying to do. Personally I use the 'Store Data Using the guidata Function' option for almost all my cases as it is very simple. There is no point me just creating an example that you can already read in the help there though.
Hadi Hijazi
Hadi Hijazi 2016 年 12 月 19 日
Thank you very much Adam

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

Community Treasure Hunt

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

Start Hunting!

Translated by