% processWin = figure(3); 
% set(processWin, ...
%     'Name', 'Processing', ...
%     'CloseRequestFcn', 'delete(curve1win), delete(curve2win), delete(processWin), delete(contourViewWin), delete(surfaceViewWin)');  
% curPos = get(processWin, 'Position');
% set(processWin, 'Position', [curPos(1) curPos(2) curPos(3) 100]);  
% 
% % Process push button 
% infoHndl=uicontrol( ...
%    'Style', 'pushbutton', ...
%    'Units', 'normalized', ...
%    'String', 'Process', ...
%    'Position', [0.1 0.6 0.1 0.25], ...
%    'Callback', 'onProcess');  
% 
% % Distance edit box
% uicontrol( ...
%    'Style', 'text', ...
%    'Units', 'normalized', ...
%    'String', 'Distance:', ...
%    'Position', [0.25 0.6 0.1 0.25] ...
%    );  
% resultT = uicontrol( ...
%    'Style', 'edit', ...
%    'Units', 'normalized', ...
%    'Position', [0.35 0.6 0.1 0.25] ...
%    ); 
% 
% % Lambda edit box
% uicontrol( ...
%    'Style', 'text', ...
%    'Units', 'normalized', ...
%    'String', 'Lambda:', ...
%    'Position', [0.6 0.6 0.1 0.25] ...
%    );  
% lambda = uicontrol( ...
%    'Style', 'edit', ...
%    'Units', 'normalized', ...
%    'Position', [0.7 0.6 0.1 0.25] ...
%    ); 
% set(lambda, 'String', 0.2);  % default
% 
% % view surface checkbox
% viewSurface = uicontrol( ...
%    'Style', 'checkbox', ...
%    'String', 'View surface', ...
%    'Units', 'normalized', ...
%    'Position', [0.1 0.3 0.15 0.25], ...
%    'Callback', 'OnCheck(gcbo, surfaceViewWin)' ...
%    ); 
% % uncheck
% set(viewSurface, 'Value', 0);
% % view contour checkbox
% viewContour = uicontrol( ...
%    'Style', 'checkbox', ...
%    'String', 'View contour', ...
%    'Units', 'normalized', ...
%    'Position', [0.1 0.1 0.15 0.25], ...
%    'Callback', 'OnCheck(gcbo, contourViewWin)' ...
%    ); 
% % check
% set(viewContour, 'Value', 1);
