% This file clears all the workspace variables. This is require to clear 
% the variables while changing the scenario.


%   Copyright 2019 The MathWorks, Inc.

clear A1 
clear A2 
clear actor_Profiles
clear Ag
clear alpha
clear assigThresh
clear B1
clear B2
clear Bg
clear blk
clear BusActorProfile
clear BusActors
clear BusActors1Actors
clear BusActorsEgo
clear BusConstraints
clear BusLaneBoundaries1
clear BusLaneBoundaries1LaneBoundaries
clear BusLaneBoundaries2
clear BusLanes
clear BusLaneSensor
clear BusLaneSensorBoundaries
clear BusLanesLaneBoundaries
clear BusLCParams
clear BusLCStatus
clear BusLCStatusMIO
clear BusMIO
clear BusTimeSeries
clear BusTraj
clear C1
clear C2
clear Cf
clear Cg 
clear clusterSize
clear Cr
clear defaultSpacing
clear EgoActor
clear egoSetVelocity
clear FCWTTC
clear fullName
clear globalPlanPoints
clear hScenarioReader
clear i
clear initialEgoVelocity
clear initialEgoX
clear initialEgoY
clear initialEgoYaw
clear Iz
clear lag
clear LaneChangeParams
clear laneWidth
clear lateralTerminalStates
clear LCATTC 
clear LCCommandTime
clear LCDuration
clear LCSettleDelay
clear LCVariations 
clear lf
clear longitudinalTerminalStates
clear lr
clear m
clear M
clear maxAc
clear maxBrake
clear maxSteer
clear maxYawRate
clear minAc
clear minSpace
clear minSteer
clear modelName
clear mpc1
clear n
clear N
clear numCoasts
clear numLanes
clear numSensors
clear numTracks
clear posSelector
clear predictionHorizon
clear refModel
clear responseTime
clear s
clear scenarioData
clear scenariosNames
clear simStopTime
clear status
clear sys
clear sys_lateral
clear sys_longitudinal
clear sysd
clear tau
clear timeGap
clear Ts
clear velSelector
clear wasModelLoaded
clear wasReModelLoaded
clear isScenarioIdExists
clear scenarioReaderBlock
clear scenarioName
clear scenarioFileName
% If ans was created by the model, clean it too
if exist('ans','var') && ischar(ans) %#ok<NOANS>
    clear ans
end
