Contenido principal

pre6GSymbolDemodulate

R2026b

Pre-6G symbol demodulation

Since R2026b

    Description

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

    cw = pre6GSymbolDemodulate(ch,sym,nVar) demodulates complex symbols to soft bits (log-likelihood ratios) for 6G research and prototyping. The function uses the modulation scheme specified by ch and the noise variance nVar.

    example

    Examples

    collapse all

    Create a physical channel configuration object with QPSK modulation.

    ch = pre6GPhysicalChannelConfig(Modulation="QPSK");

    Generate random QPSK symbols for a batch size of three and add noise.

    txBits = randi([0 1],200,3,"int8");
    sym = pre6GSymbolModulate(ch,txBits);
    [rxSym,nVar] = awgn(sym,5);

    Demodulate to soft bits. Verify the output length and calculate the bit error rate.

    cw = pre6GSymbolDemodulate(ch,rxSym,nVar);
    isequal(length(cw),length(txBits))
    ans = logical
       1
    
    
    hardBits = cw < 0;
    ber = sum(hardBits ~= txBits)/length(txBits)
    ber = 1×3
    
        0.0300    0.0400    0.0200
    
    

    Input Arguments

    collapse all

    Physical channel configuration parameters, specified as a pre6GPhysicalChannelConfig object. This function uses only the Modulation, Constellation, and Qm properties of the pre6GPhysicalChannelConfig object.

    Received symbols to demodulate, specified as a complex matrix of size Nsym-by-B, where Nsym is the number of symbols and B is the batch size.

    Data Types: single | double
    Complex Number Support: Yes

    Noise variance, specified as a nonnegative scalar or a nonnegative real matrix of the same size as symbols. This value scales the soft-bit output. When specified as a scalar, the same noise variance applies to all symbols.

    Data Types: single | double

    Output Arguments

    collapse all

    Demodulated soft bits, returned as a real matrix of size (Nsym × Qm)-by-B, where Nsym is the number of input symbols, Qm is the modulation order, and B is the batch size. Values are log-likelihood ratios (LLRs).

    Data Types: single | double

    Extended Capabilities

    expand all

    Version History

    Introduced in R2026b