S.ed = uicontrol('style','edit',...
'units','pix',...
'position',[90 20 200 20],...
'backgroundcolor','w',...
'callback',{@ed_call,S});
function [] = ed_call(varargin)
% Closes the dialog when user presses return.
[h,S] = varargin{[1,3]}; % Get calling handle and structure.
close(S.fh)
'units','pix',...
'position',[90 20 200 20],...
'backgroundcolor','w',...
'callback',{@ed_call,S});
function [] = ed_call(varargin)
% Closes the dialog when user presses return.
[h,S] = varargin{[1,3]}; % Get calling handle and structure.
close(S.fh)
end
% --- Outputs from this function are returned to the command line. function varargout = mygui_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)