This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

wlanDMGOFDMInfo

Return OFDM information for DMG format

Syntax

info = wlanDMGOFDMInfo

Description

example

info = wlanDMGOFDMInfo returns a structure, info, containing orthogonal frequency-division multiplexing (OFDM) information for the DMG-Data or DMG-Header fields.

Examples

collapse all

Obtain OFDM information for the DMG-Data field

Obtain the OFDM information for the L-LTF and display the FFT length.

info = wlanDMGOFDMInfo;
disp(info.FFTLength);
   512

Perform OFDM demodulation on the DMG-Data field and extract the data and pilot subcarriers.

Generate a WLAN waveform for a DMG format configuration, 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);

Return OFDM information, extracting the data and pilot subcarriers.

info = wlanDMGOFDMInfo;
data = sym(info.DataIndices,:,:);
pilots =  sym(info.PilotIndices,:,:);

Output Arguments

collapse all

OFDM information, returned as a structure containing the following fields.

Length of the fast Fourier transform (FFT), returned as a positive integer.

Data Types: double

Cyclic prefix length, returned as a positive integer.

Data Types: double

Number of active subcarriers, returned as a nonnegative integer.

Data Types: double

Indices of active subcarriers, returned as a column vector of integers in the interval [-FFTLength/2, FFTLength/2 – 1]. Each entry of ActiveFrequencyIndices is the index of an active subcarrier such that the DC or null subcarrier is at the center of the frequency band.

Data Types: double

Indices of active subcarriers within the FFT, returned as a column vector of positive integers in the interval [1, FFTLength].

Data Types: double

Indices of data within the active subcarriers, returned as a column vector of positive integers in the interval [1, NumTones].

Data Types: double

Indices of pilots within the active subcarriers, returned as a column vector of integers in the interval [1, NumTones].

Data Types: double

Data Types: struct

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

See Also

Functions

Objects

Introduced in R2019a