% PPNEW.M
%
%    The Program PPNEW is used to launch a new instance of the pepperpot
%    GUI program, PPGUI.  PPNEW ensures that all the global variables are
%    reset and that, if they're present in the Matlab workspace, they
%    remain so.
%
%    PPNEW is necessary, rather than simply typing PPGUI, because shutting
%    and restarting the GUI itself does not reset the global variables,
%    leading to problems with analysing multiple datasets.
%

    cd(getppdir) ;

    close(ppgui) ;

    ppreset ;

    ishandle(ppgui) ;

    clear ans ;

    return
