Advanced: Getting an output from a GUIDE GUI 10
Posted by Doug Hull,
%%% OpeningFCN
uncomment uiwait
%%% OutputFCN
varargout{1} = handles.output;
% The figure can be deleted now
delete(handles.figure1);
%%% CloseReqFCN
if isequal(get(hObject, 'waitstatus'), 'waiting')
% The GUI is still in UIWAIT, us UIRESUME
uiresume(hObject);
else
% The GUI is no longer waiting, just close it
delete(hObject);
end
Comments
To leave a comment, please click here to sign in to your MathWorks Account or create a new one.
Recent Comments