% replayCANFDDataCleanup Clean up after the data replay for the CAN FD
% Explorer reception and visualization example.
%
% Copyright 2020 The MathWorks, Inc.

% If the CAN FD channel variable still exists in the workspace, stop the
% channel connection and clear the variable.
if exist('ch', 'var')
    stop(ch)
    clear ch
end

% Clear the timetable used for replay if it still exists in the workspace.
if exist('canFDMsgs', 'var')
    clear canFDMsgs
end
