Info

This question is closed. Reopen it to edit or answer.

How can I pass variables from one GUI to another and changes values in one GUI from another?

1 view (last 30 days)
I am making a GUI for a class project and I need to pass variables from one GUI to another. I need to enter some text into a edit text field with a number pad and have what was entered in the number pad become the value of the text field.
I'm not sure how to do this. I have tried simply using set(handles.edittext, 'String', num2str(variable_I_want_passed)). This code was in the numberpad trying to change a value in the primary GUI
Basically I'm wanting to know if there is a way to exchange information between MATLAB GUI's and how to do it.

Answers (1)

Image Analyst
Image Analyst on 17 Apr 2013

Community Treasure Hunt

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

Start Hunting!