wlanDMGOFDMInfo
OFDM information for DMG transmission
Syntax
Description
Examples
Get OFDM Information for DMG-Data Field
Get the OFDM information for the DMG-Data field and display the fast Fourier transform (FFT) length.
info = wlanDMGOFDMInfo; disp(info.FFTLength)
512
Demodulate DMG-Data Field and Get OFDM Information
Perform OFDM demodulation on the DMG-Data field, then extract the data and pilot subcarriers.
Generate a WLAN waveform for a DMG transmission, specifying the modulation and coding scheme (MCS).
cfg = wlanDMGConfig('MCS','15'); bits = [1; 0; 0; 1]; waveform = wlanWaveformGenerator(bits,cfg);
Obtain the field indices and extract the DMG-Data field.
ind = wlanFieldIndices(cfg); rx = waveform(ind.DMGData(1):ind.DMGData(2),:);
Perform OFDM demodulation on the DMG-Data field.
sym = wlanDMGOFDMDemodulate(rx);
Get the OFDM information, then extract the data and pilot subcarriers.
info = wlanDMGOFDMInfo; data = sym(info.DataIndices,:,:); pilots = sym(info.PilotIndices,:,:);
Output Arguments
info
— OFDM information
structure
OFDM information, returned as a structure containing these fields.
Name | Values | Description | Data Types |
---|---|---|---|
FFTLength | Positive integer | Length of the fast Fourier transform (FFT) | double |
SampleRate | Positive scalar | Sample rate of the waveform | double |
CPLength | Positive integer | Cyclic prefix length, in samples | double |
NumTones | Nonnegative integer | Number of active subcarriers | double |
NumSubchannels | Positive integer | Number of 20 MHz subchannels | double |
ActiveFrequencyIndices | Column vector of integers in the interval
[–FFTLength /2,
(FFTLength /2 – 1)] | Indices of active subcarriers. Each element of this field is the index of an active subcarrier, such that the direct current (DC) or null subcarrier is at the center of the frequency band. | double |
ActiveFFTIndices | Column vector of integers in the interval [1,
FFTLength ] | Indices of active subcarriers within the FFT | double |
DataIndices | Column vector of integers in the interval [1,
NumTones ] | Indices of data within the active subcarriers | double |
PilotIndices | Column vector of integers in the interval [1,
NumTones ] | Indices of pilots within the active subcarriers | double |
Data Types: struct
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Version History
Introduced in R2019a
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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)