You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: rlcLogger.m
    path of file: ./repos/5G_based_System_level_Integrated_Sensing_and_Communication_Simulator/+communication/+rlcLayer
    
    the code of the file until where you have to start completion: classdef rlcLogger < handle
    %rlcLogger RLC statistics logging object
    %   The class implements per slot logging mechanism for RLC logical
    %   channels of the UEs. It is used to log the statistics per cell

    %   Copyright 2019-2021 The MathWorks, Inc.

    properties
        %NCellID Cell id to which the logging object belongs
        NCellID (1, 1) {mustBeInteger, mustBeInRange(NCellID, 0, 1007)} = 1;

        %NumUEs Count of
    
function logRLCStats(obj, ueRLCStats, gNBRLCStats)
            %logRLCStats Log the RLC statistics
            %
            % logRLCStats(OBJ, UERLCSTATS, GNBRLCSTATS) Logs the RLC
            % statistics
            %
            % UERLCSTATS - Represents a N-by-1 cell, where N is the number
            % of UEs. Each element of the cell is  a P-by-Q matrix, where
            % P is the number of logical channels, and Q is the number of
            % statistics collected. Each row represents statistics of a
            % logical channel.
            %
            % GNBRLCSTATS - Represents a N-by-1 cell, where N is the number
            % of UEs. Each element of the cell is  a P-by-Q matrix, where
            % P is the number of logical channels, and Q is the number of
            % statistics collected. Each row represents statistics of a
            % logical channel of a UE at gNB.

            currUEStats = vertcat(ueRLCStats{:});
            currgNBStats = vertcat(gNBRLCStats{:});
            % Sort the rows based on RNTI and LCID
            currUEStats = sortrows(currUEStats, [obj.RLCStatIndexMap('RNTI') obj.RLCStatIndexMap('LCID')]);
            currgNBStats = sortrows(currgNBStats, [obj.RLCStatIndexMap('RNTI') obj.RLCStatIndexMap('LCID')]);

            % Move to the next slot
            obj.CurrSlot = mod(obj.CurrSlot + 1, obj.NumSlotsFrame);
            if(obj.CurrSlot == 0)
                obj.CurrFrame = obj.CurrFrame + 1; % Next frame
            end