With reference to gui
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Buddhini Angelika
am 27 Dez. 2015
Kommentiert: Buddhini Angelika
am 28 Dez. 2015
I have 2 gui s, GUI1 and GUI2 where GUI1 consists of 1 edit text box, 2 push buttons which are tagged as edit1,push1,push2 respectively and GUI2 consists of a push button tagged push3. When I enter a number in to edit1 and press push1,it will get assigned to a variable a. Then when I press push2 it should open GUI2 and in GUI2 when I press push3 it should perform the computation r=2*a by using the above mentioned a.
My problem is to obtain the value of a to be used in the call back of push3. Please help me with this. (My real computations are complex than this but if you can provide the answer to the above question I can adapt it to my requirement)
Thanks in advance.
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 27 Dez. 2015
This is answered in the last portion of this FAQ entry: http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!