pre6GOFDMInfo
Description
Add-On Required: This feature requires the 6G Exploration Library for 5G Toolbox add-on.
specifies options using one or more name-value arguments. For example,
info = pre6GOFDMInfo(carrier,Name=Value)Windowing=8 specifies 8 samples of raised cosine
windowing.
Examples
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
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
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
OFDM information, returned as a structure containing these fields:
| Fields | Values | Description |
|---|---|---|
Nfft | Positive integer | Number of FFT points |
SampleRate | Positive scalar | Waveform sample rate in Hz |
CyclicPrefixLengths | 1-by-N vector of nonnegative integers, where N is the number of OFDM symbols in a subframe | Cyclic prefix lengths of each OFDM symbol, in samples |
SymbolLengths | 1-by-N vector of positive integers | OFDM symbol lengths including cyclic prefix, in samples |
Windowing | Nonnegative integer | Number of time-domain samples over which the modulator will apply raised cosine windowing and overlapping of OFDM symbols |
SymbolsPerSlot | Positive integer | Number of OFDM symbols in a slot |
SlotsPerSubframe | Positive integer | Number of slots in a 1 ms subframe |
SlotsPerFrame | Positive integer | Number of slots in a 10 ms frame |
SlotCyclicPrefixOffsets | 1-by-SlotsPerSubframe vector of
nonnegative integers | Slot cyclic prefix offsets when BatchAcrossSlots is
"on", zeros otherwise |
SlotLengths | 1-by-SlotsPerSubframe vector of
positive integers | Total 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
See Also
pre6GOFDMModulate | pre6GOFDMDemodulate | pre6GCarrierConfig
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)