Info

This question is closed. Reopen it to edit or answer.

How do I open a GUI from a GUI?

1 view (last 30 days)
kamil
kamil on 12 Nov 2013
Closed: Doug Hull on 12 Nov 2013

Answers (1)

Doug Hull
Doug Hull on 12 Nov 2013
This documentation link might help.
  2 Comments
kamil
kamil on 12 Nov 2013
Edited: Doug Hull on 12 Nov 2013
% --- Executes just before testingselasa is made visible.
function testingselasa_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to testingselasa (see VARARGIN)
% Choose default command line output for testingselasa
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% --- Outputs from this function are returned to the command line.
function varargout = testingselasa_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
*what i am suppose to write the coding?*
kamil
kamil on 12 Nov 2013
Edited: Doug Hull on 12 Nov 2013
% Get default command line output from handles structure
varargout{1} = handles.output;
a =imread('download.jpg');
imshow(a);
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
*What i am suppose to write in pushbutton1 and pushbutton2?*

This question is closed.

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!