Contenuto principale

pre6GPhysicalChannelIndices

Pre-6G physical channel resource element indices

Since R2026a

    Description

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

    [ind,info] = pre6GPhysicalChannelIndices(carrier,ch) returns physical channel resource element (RE) indices for 6G research and prototyping. carrier and ch are the carrier and physical channel configuration parameters, respectively. The function also returns the structure info, which contains the physical channel bit capacity, symbol capacity, modulation order, and number of REs per physical resource block (PRB).

    example

    [ind,info] = pre6GPhysicalChannelIndices(___,Name=Value) specifies options using one or more name-value arguments. For example, IndexStyle="subscript" returns indices in subscript form.

    example

    Examples

    collapse all

    Create carrier and physical channel configuration objects with default parameters. Get 0-based indices and resource information for the configurations. Display the number of indices and the bit capacity.

    carrier = pre6GCarrierConfig;
    ch = pre6GPhysicalChannelConfig;
    [ind,info] = pre6GPhysicalChannelIndices(carrier,ch,IndexBase="0based");
    disp([numel(ind) info.G]);
            8736       17472
    

    Reduce the PRB allocation of the physical channel from 52 to 26 PRBs. Get the new 0-based indices and resource information. Display the new number of indices and the new bit capacity.

    ch.PRBSet = 0:25;
    [ind,info] = pre6GPhysicalChannelIndices(carrier,ch,IndexBase="0based");
    disp([numel(ind) info.G]);
            4368        8736
    

    Input Arguments

    collapse all

    Carrier configuration parameters for a specific OFDM numerology, specified as a pre6GCarrierConfig object. This function uses only the NSizeGrid and SymbolsPerSlot properties of the pre6GCarrierConfig object.

    Physical channel configuration parameters, specified as a pre6GPhysicalChannelConfig object. This function uses only these pre6GPhysicalChannelConfig object properties:

    Name-Value Arguments

    collapse all

    Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

    Example: IndexStyle="subscript",IndexBase="0based" specifies the RE indexing form and base, respectively, of the output.

    Enable GPU processing, specified as one of these values:

    • "off" — The function executes on the CPU.

    • "on" — The function executes on the GPU.

    • "auto" — If a GPU is available, the function automatically executes on the GPU. If no GPUs are available, the function executes on the CPU.

    To use a GPU to accelerate computations in MATLAB®, you must have Parallel Computing Toolbox™ and a supported GPU device. For more information on supported devices, see GPU Computing Requirements (Parallel Computing Toolbox).

    Data Types: char | string

    Batch size for parallel processing, specified as a positive integer. When IndexStyle is "index", this input determines the third dimension of the ind output, which you can use to separate your data for parallel processing.

    RE indexing form, specified as one of these values:

    • "index" — The function returns linear indices as an NRE-by-NLayers-by-B array, where NRE is the number of REs per layer, NLayers is the number of transmission layers, and B is the BatchSize name-value argument. Each page contains the linear indices into the resource grid for a given layer and batch element.

    • "subscript" — The function returns subscript indices as an (NRE × NLayers)-by-3 matrix, where NRE is the number of REs per layer and NLayers is the number of transmission layers. The columns correspond to [subcarrier, symbol, layer] subscripts.

    Data Types: char | string

    RE indexing base, specified as one of these values:

    • "1based" — The indices start from 1.

    • "0based" — The indices start from 0.

    Data Types: char | string

    Output Arguments

    collapse all

    Physical channel RE indices, returned as a 3-D array or matrix. The format depends on the IndexStyle name-value argument:

    • "index" — The function returns ind as an NRE-by-NLayers-by-B array. Each page contains the linear indices into the resource grid for a given layer and batch element.

    • "subscript" — The function returns ind as an (NRE × NLayers)-by-3 matrix. The columns correspond to [subcarrier, symbol, layer] subscripts.

    The IndexBase name-value argument controls whether the returned indices are 1-based or 0-based.

    Data Types: uint32

    Physical channel resource information, returned as a structure containing these fields.

    FieldDescription
    G

    Bit capacity of the physical channel (NRE × NLayers × Qm)

    Gd

    Number of REs per layer (NRE) allocated to the physical channel

    NREPrime

    Number of REs per PRB allocated to the physical channel, excluding reserved resources

    Extended Capabilities

    expand all

    Version History

    Introduced in R2026a