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

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.

This question is closed.

Asked:

on 17 Apr 2013

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!