Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Main GUI dissapears when another pops up and how to print onto the GUI?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
[EDIT: Fri May 13 03:00:26 UTC 2011 Reformat - MKF]
Hello,
I have the GUI code below:
function varargout = User_Interface(varargin)
...
function User_Interface_OpeningFcn(hObject, eventdata, handles, varargin)
handles.val = 1;
...
function radiobutton1_Callback(hObject, eventdata, handles)
if(get(hObject,'Value')== 1)
handles.val = 1;
% Save the handles structure.
guidata(hObject,handles)
end
function radiobutton2_Callback(hObject, eventdata, handles)
if(get(hObject,'Value')== 1)
handles.val = 2;
% Save the handles structure.
guidata(hObject,handles)
end
function radiobutton3_Callback(hObject, eventdata, handles)
if(get(hObject,'Value')== 1)
handles.val = 3;
% Save the handles structure.
guidata(hObject,handles)
end
function pushbutton1_Callback(hObject, eventdata, handles)
switch(handles.val)
case 1
InputOneImage
%This is a name of a file
case 2
InputMultipleImages
%This is a name of a file
case 3
Leukemia
%This is a name of a file
end
When i run it, there are two problems:
1) On one of the files i call, there is something that looks like this:
directory = uigetdir;
The small GUI that pops closes my main GUI. I would like to keep the main GUI open. How can i do that
2) I basic of using 'static text' but, i really don't know how to print something on the GUI as the program is running. I would like to print something like this on my GUI:
starting stage one
starting stage two
...
and so on
Thank you for your help
1 Commento
Arturo Moncada-Torres
il 13 Mag 2011
Regarding Question 1, could you provide more information? Where is it called, what do you do before, etc.
Risposte (0)
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!