Main Content

pre6GOFDMInfo

Get OFDM information for pre-6G carrier configuration

Since R2026a

Description

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

info = pre6GOFDMInfo(carrier) provides dimensional information relevant to orthogonal frequency-division multiplexing (OFDM) modulation for the specified pre-6G carrier configuration parameters.

example

info = pre6GOFDMInfo(carrier,Name=Value) specifies options using one or more name-value arguments. For example, Windowing=8 specifies 8 samples of raised cosine windowing.

Examples

collapse all

Set carrier configuration parameters, specifying a subcarrier spacing of 3.75 kHz, 280 resource blocks (RBs), and extended cyclic prefix.

carrier = pre6GCarrierConfig(SubcarrierSpacing=3.75,NSizeGrid=280,CyclicPrefix="extended");
nSlots =  carrier.SlotsPerFrame;

Get OFDM information for the carrier configuration, specifying an oversampling factor of 2.

osf = 2;
info = pre6GOFDMInfo(carrier,OversamplingFactor=osf,BatchAcrossSlots="off");

Create a reference signal configuration object with default parameters. Specify a single transmit antenna and a batch size of 2. Calculate the number of batches in a frame.

rs = pre6GReferenceSignalConfig;
P = 1;
B = 2;
numBatches = nSlots/B;

Produce the frame resource array by creating and concatenating individual batch resource arrays.

grid = [];
for i = 0:numBatches - 1
    slotGrid = pre6GResourceGrid(carrier,P,BatchSize=B);
    [K,L] = size(slotGrid);
    ind = pre6GReferenceSignalIndices(carrier,rs,BatchSize=B);
    sym = pre6GReferenceSignal(carrier,rs,BatchSize=B);
    slotGrid(ind) = sym;
    grid = cat(4,grid,slotGrid);
end

OFDM-modulate the resource array for the specified carrier configuration and oversampling factor.

waveform = pre6GOFDMModulate(carrier,grid,OversamplingFactor=osf,BatchAcrossSlots="on");

Set carrier configuration parameters, specifying a subcarrier spacing of 60 kHz.

carrier = pre6GCarrierConfig(SubcarrierSpacing=60);

Generate and display OFDM information for the configuration, assuming batching across slots.

info = pre6GOFDMInfo(carrier,BatchAcrossSlots="on")
info = struct with fields:
                       Nfft: 1024
                 SampleRate: 61440000
        CyclicPrefixLengths: [72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72 72]
              SymbolLengths: [1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 1096 … ] (1×56 double)
                  Windowing: 0
             SymbolsPerSlot: 14
           SlotsPerSubframe: 4
              SlotsPerFrame: 40
    SlotCyclicPrefixOffsets: [32 0 32 0]
                SlotLengths: [15344 15344 15344 15344]

Input Arguments

collapse all

Carrier configuration parameters for a specific OFDM numerology, specified as a pre6GCarrierConfig object. Only these object properties are relevant for this function:

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: Windowing=8 specifies 8 samples of raised cosine windowing.

Number of time-domain samples for OFDM symbol windowing and overlapping, specified as a nonnegative integer. If you specify this argument as a value greater than 0, the function will return OFDM information assuming that the modulator will apply raised cosine windowing and overlapping of OFDM symbols over the number of samples you specify.

Data Types: double

Oversampling factor, specified as a positive scalar. This value determines the oversampling applied to the OFDM modulation. The resulting FFT size (the Nfft field of the info output) must be an even integer that is greater than or equal to the number of subcarriers.

Data Types: double

Enable batching across slots, specified as "off" or "on".

Data Types: char | string

Output Arguments

collapse all

OFDM information, returned as a structure containing these fields:

FieldsValuesDescription
NfftPositive integerNumber of FFT points
SampleRatePositive scalarWaveform sample rate in Hz
CyclicPrefixLengths1-by-N vector of nonnegative integers, where N is the number of OFDM symbols in a subframeCyclic prefix lengths of each OFDM symbol, in samples
SymbolLengths1-by-N vector of positive integersOFDM symbol lengths including cyclic prefix, in samples
WindowingNonnegative integerNumber of time-domain samples over which the modulator will apply raised cosine windowing and overlapping of OFDM symbols
SymbolsPerSlotPositive integerNumber of OFDM symbols in a slot
SlotsPerSubframePositive integerNumber of slots in a 1 ms subframe
SlotsPerFramePositive integerNumber of slots in a 10 ms frame
SlotCyclicPrefixOffsets1-by-SlotsPerSubframe vector of nonnegative integersSlot cyclic prefix offsets when BatchAcrossSlots is "on", zeros otherwise
SlotLengths1-by-SlotsPerSubframe vector of positive integersTotal number of samples in each slot

Note

For negative numerologies (subcarrier spacing less than 15 kHz), the function adjusts the sample rate and slot structure accordingly. The minimum supported numerology is μ = –1 for normal cyclic prefix and μ = –2 for extended cyclic prefix.

Data Types: struct

Version History

Introduced in R2026a