"frank zhu" <email@example.com> wrote in message
> In my main Gui, I am trying to use callback to display another GUI
> but I don't know how to change the value of edit component in the
> second gui. Who can tell me how to do it. Thank you in advance
You need to use one of several(!) ways of transferring data. For instance,
h1 = uicontrol('pos',[10 10 100 20],'style','pushbutton','string','Add
h2 = uicontrol('pos',[10 100 100 300],'style','edit','string',1,'tag','h2');
Note that most here wouldn't suggest this as the BEST method...just here for
illustration. (Still, it works well.) Can also be done with global
variables, userdata, evalin/assignin, appdata, reading/writing to/from
files, passing variables directly, etc.
Suggest you do a bit of reading about workspaces.