How to get data from one gui to other

I want the data entered in gui1 to be saved in gui2. So please assist me in achieving the desired result with code. The gui1 code is as follows:
function varargout = program(varargin)
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @program_OpeningFcn, ...
'gui_OutputFcn', @program_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
function program_OpeningFcn(hObject, eventdata, handles, varargin)
handles.output = hObject;
guidata(hObject, handles);
function varargout = program_OutputFcn(hObject, eventdata, handles)
varargout{1} = handles.output;
function edit1_Callback(hObject, eventdata, handles)
function edit1_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function pushbutton1_Callback(hObject, eventdata, handles)
gui2
what(code) must be written in gui2 to save data written in program(i.e.,gui1).

3 commentaires

Stephen23
Stephen23 le 14 Jan 2016
Modifié(e) : Stephen23 le 14 Jan 2016
@CHETHAN S: today I formatted your code properly for you. In future you can do it yourself by selecting the code text, then clicking the {} Code button. It really is that easy.
Do not add >> or space characters at the front of your text, it just ruins the formatting.
Stephen23
Stephen23 le 14 Jan 2016
Modifié(e) : Stephen23 le 14 Jan 2016

Réponses (0)

Cette question est clôturée.

Tags

Question posée :

le 14 Jan 2016

Clôturé :

le 15 Jan 2016

Community Treasure Hunt

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

Start Hunting!

Translated by