% Clean up script for theSafe Reach Goal example.  
%
% This script cleans up the SRG example model. It is triggered by the
% CloseFcn callback.
%
%   This is a helper script for example purposes and may be removed or
%   modified in the future.

%   Copyright 2020-21 The MathWorks, Inc.



clear BusActors1;
clear goalPoints2; 
clear seed;
clear xCor;
clear yCor;
clear ans;
clear iActor;
clear radius;
clear thetha;
clear distance;
clear indx;
clear speed;
clear trajectory;
clear yawROI1;
clear yawROI2;     
clear roiStart1;
clear roiStart2;
clear startPointsROI2
clear startPointsROI1;
clear roiGoal;
clear startPoints;
clear vehicle;     
clear goalPoints;  
clear goalPoints1;
clear numActors;
clear waypoints; 
clear agent
clear s
clear dist
clear xp yp
clear Pos