function tourbye
% Closes the MATLAB Tour Main Window.

%    Yama Habibzai
%   Copyright (c) 1984-98 by The MathWorks, Inc. All Rights Reserved
%    $Revision: 1.11 $
%    $Date: 1997/12/03 17:30:05 $

echo off;
fig = findall(0, 'Name', 'MATLAB Tour');

if isempty(fig)
  return;
end

set(fig, 'CloseRequestFcn', ' ');
param = get(fig, 'UserData');
warn = param.warning;
warning(warn);
close(fig, 'force');
clc;


