Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How do I open a GUI from a GUI?

1 vue (au cours des 30 derniers jours)
kamil
kamil le 12 Nov 2013
Clôturé : Doug Hull le 12 Nov 2013

Réponses (1)

Doug Hull
Doug Hull le 12 Nov 2013
This documentation link might help.
  2 commentaires
kamil
kamil le 12 Nov 2013
Modifié(e) : Doug Hull le 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 le 12 Nov 2013
Modifié(e) : Doug Hull le 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?*

Cette question est clôturée.

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by