Passing parameters in GUI for CBIR system

After executing a certain pushbutton, how do u pass the values calculated and stored in a variable to another push button code in the same GUI?

 採用された回答

Andrew
Andrew 2012 年 4 月 6 日

0 投票

You need to pass them with the handles structure array. In the function for the pushbutton if you define something like
handles.x=[]; handles.y=[];
they will be stored in the structure array handles that can be seen by all functions in a gui...
Also after you alter handles in a function you need to update the changes by using
guidata(hObject, handles);
If you don't do this other functions wont notice that the handles structure has been changed.

カテゴリ

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

製品

質問済み:

2012 年 4 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by