主要内容

pre6GScramble

R2026b

Pre-6G physical channel scrambling

Since R2026b

    Description

    Add-On Required: This feature requires the 6G Exploration Library for 5G Toolbox add-on.

    scrambled = pre6GScramble(carrier,ch,cw) scrambles codeword bits for 6G research and prototyping. The function generates a pseudorandom binary sequence (PRBS) and applies a bitwise XOR with the input codeword cw.

    example

    Examples

    collapse all

    Create carrier and physical channel configuration objects.

    carrier = pre6GCarrierConfig(NCellID=42);
    ch = pre6GPhysicalChannelConfig(Modulation="QPSK",NumLayers=1);

    Generate random codeword bits for a batch size of three.

    cw = randi([0 1],624,3);

    Scramble the codeword. Verify that the output is logical and has the same size as the input.

    scrambled = pre6GScramble(carrier,ch,cw);
    class(scrambled)
    ans = 
    'logical'
    
    isequal(size(scrambled),size(cw))
    ans = logical
       1
    
    

    Input Arguments

    collapse all

    Carrier configuration parameters for a specific OFDM numerology, specified as a pre6GCarrierConfig object. This function uses only the NCellID property of the pre6GCarrierConfig object.

    Physical channel configuration parameters, specified as a pre6GPhysicalChannelConfig object. This function uses only the ScramblerInitialization property of the pre6GPhysicalChannelConfig object. If empty, the function uses carrier.NCellID as the PRBS initialization value.

    Codeword bits to scramble, specified as a real matrix of size G-by-B or a dlarray object. G is the codeword length and B is the batch size.

    Data Types: double | int8 | logical

    Output Arguments

    collapse all

    Scrambled codeword, returned as a logical matrix of size G-by-B, or, if cw is a dlarray, as a dlarray object.G is the codeword length and B is the batch size.

    Data Types: logical

    More About

    collapse all

    Extended Capabilities

    expand all

    Version History

    Introduced in R2026b