disp(['Running MATLAB script s322eg16.m']) ;
%
%    EXAMPLE 16 FOR STATISTICS 322
%    POSTED 12/3/96
%    EXPLORES GRAPHICAL USER INTERFACE
%    

%  CREATE THE "MAIN CHOICE FRAME", WHICH ENCLOSES THE TWO
%  MAIN "PUSH BUTTONS"
figure(1) ;
          %  PUT IN FIGURE WINDOW #1
clf ;
mainh = uicontrol(gcf,'Style','frame',...
               'Position',[50 200 400 150]) ; 
                     %  NUMBER OF PIXELS FROM LEFT EDGE
                     %  NUMBER OF PIXELS FROM BOTTOM
                     %  NUMBER OF PIXELS IN WIDTH
                     %  NUMBER OF PIXELS IN HEIGHT


%  CREATE A PUSHBUTTON TO RUN FIRST EXAMPLE
pushb1 = uicontrol(gcf,'Style','push','Position',[60 280 380 60],...
              'String','Push here for Interactive Box-Cox Transformation',...
              'CallBack','s322e16a ;') ;
                     %  "String" IS THE "LABEL" OF THE PUSH BUTTON

                     %  "CALLBACK" IS WHAT HAPPENS WHEN THE BUTTON IS 
                     %  PUSHED.  SINCE A LARGE NUMBER OF COMMANDS ARE
                     %  THEY ARE PUT INTO A SEPARATE SCRIPT FILE.

%  CREATE A PUSHBUTTON FOR THE SECOND EXAMPLE
pushb2 = uicontrol(gcf,'Style','push','Position',[60 210 380 60],...
              'String','Push here for Interactive Leverage in Regression',...
              'CallBack','s322e16c ;') ;
                     %  AGAIN A SEPARATE SCRIPT FILE IS NEEDED.

