How to input values in a GUI and send it to MainGUI ??

Hi
I want to open a second GUI from a pushbutton in mainGUI, that new GUI is only for input of values(7 variables).These values will be used in main, in a function. After that, i need to plot the result of the funtion with another standard function.
In the new GUI i need to define the variables? How to use de setappdata and getappdata with all variables?
Nuno Lima

 채택된 답변

Daniel Shub
Daniel Shub 2011년 8월 5일

0 개 추천

댓글 수: 1

Nu9
Nu9 2011년 8월 18일
i try to use that info but no results. i don't undersantd where i need to put all the defined variables
% Add a brand new variable on to the handles structure.
handles.myNewVariable = 0;
it must be in function data_OpeningFcn(hObject, eventdata, handles, varargin) or in function edit1_Callback(hObject, eventdata, handles)?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Nu9
Nu9 2011년 8월 16일

0 개 추천

HI again, finally it opens a new GUI where i can input 7 variables, but i don't undersand how it save the values. i want to push a buttom then it save the values and send them to the main GUI.
a = get(handles.edit1_editText,'String');
i add this line in "function pushbutton1_Callback(hObject, eventdata, handles) " and shows me a lot of errors after that.
programming in c++ i can save variables in a second function and then i use those values in main function, how can i do the same here?
Please help me

카테고리

도움말 센터File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

질문:

Nu9
2011년 8월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by