Hi vietha, thank you for your answer. yes, it works! now I have to find the way to pass data from window2 to window1.
"vietha " <email@example.com> wrote in message <firstname.lastname@example.org>... > Or you can try by defining in the function like this: > > function pushbutton_Callback(hObject, eventdata, handles) > > %% this button in the window 1 > %% now u want to define, when u push this button, the window 2 open ( which is %% created in window2.m) > %% just need to type > window2 > > Hope it help. :)