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