Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How do I open a GUI from a GUI?

조회 수: 1 (최근 30일)
kamil
kamil 2013년 11월 12일
마감: Doug Hull 2013년 11월 12일

답변 (1개)

Doug Hull
Doug Hull 2013년 11월 12일
This documentation link might help.
  댓글 수: 2
kamil
kamil 2013년 11월 12일
편집: Doug Hull 2013년 11월 12일
% --- 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 2013년 11월 12일
편집: Doug Hull 2013년 11월 12일
% 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?*

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by