주요 콘텐츠

pre6GPhysicalChannel

Pre-6G physical channel symbols

Since R2026a

    Description

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

    sym = pre6GPhysicalChannel(carrier,ch,cw) returns physical channel symbols for 6G research and prototyping. carrier, ch, and cw are the carrier configuration parameters, physical channel configuration parameters, and codeword, respectively.

    example

    sym = pre6GPhysicalChannel(___,OutputDataType=odt) additionally specifies the data type of the output symbols.

    Examples

    collapse all

    Create a pre-6G carrier configuration object with default parameters. Set a batch size of five. Create an empty resource grid for the configuration and batch size.

    carrier = pre6GCarrierConfig;
    B = 5;
    grid = pre6GResourceGrid(carrier,1,BatchSize=B);

    Create a reference signal configuration object with default parameters. Get 0-based reference signal indices for the reference signal configuration.

    rs = pre6GReferenceSignalConfig;
    rs.SymbolLocations = (0:7)';
    rs.TimeDomainCDM = 8;
    rsInd = pre6GReferenceSignalIndices(carrier,rs,BatchSize=B);

    Create a data channel configuration object. Use the reference signal indices as reserved resource elements for the physical channel configuration object.

    Get 0-based data indices and resource mapping information for the physical channel configuration.

    ch = pre6GPhysicalChannelConfig(ReservedRE=rsInd-1);
    [dataInd,info] = pre6GPhysicalChannelIndices(carrier,ch,BatchSize=B);

    Generate a random codeword for the physical channel. Generate the data and reference signal symbols. Assign the data and reference symbols to the grid.

    cw = randi([0 1],[info.G,B]);
    sym = pre6GPhysicalChannel(carrier,ch,cw);
    rsSym = pre6GReferenceSignal(carrier,rs,BatchSize=B);
    grid(rsInd) = rsSym;
    grid(dataInd) = sym;

    Plot the resource element assignments for the first batch element.

    map = zeros(size(grid,1),size(grid,2));
    map(dataInd(:,1,1)) = 1;
    map(rsInd(:,1,1)+1) = 2;
    
    figure;
    image(map+1);
    axis xy;
    colormap([1 1 1; 0.3 0.3 1; 1 1 0]);
    xlabel('OFDM Symbols');
    ylabel('Subcarriers');
    title('Physical Channel and Reference Signal Resource Elements');

    Figure contains an axes object. The axes object with title Physical Channel and Reference Signal Resource Elements, xlabel OFDM Symbols, ylabel Subcarriers contains an object of type image.

    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 these pre6GPhysicalChannelConfig object properties:

    Codeword bits, specified as a binary matrix of size G-by-B, where G is the number of coded bits (NRE × NLayers × Qm) and B is the batch size. NRE is the number of resource elements (REs) per layer, NLayers is the number of transmission layers, and Qm is the modulation order.

    Data Types: double | int8 | logical

    Output data type, specified as "single" or "double".

    Data Types: char | string

    Output Arguments

    collapse all

    Physical channel symbols, returned as a complex matrix.

    Data Types: single | double
    Complex Number Support: Yes

    Extended Capabilities

    expand all

    Version History

    Introduced in R2026a