wlanDMGOFDMDemodulate

Demodulate fields of a DMG waveform

Syntax

sym = wlanDMGOFDMDemodulate(rx)
sym = wlanDMGOFDMDemodulate(rx,'OFDMSymbolOffset',symOffset)

Description

example

sym = wlanDMGOFDMDemodulate(rx) returns the demodulated frequency-domain signal sym by performing orthogonal frequency-division multiplexing (OFDM) demodulation on the received time-domain signal rx for DMG format configuration.

example

sym = wlanDMGOFDMDemodulate(rx,'OFDMSymbolOffset',symOffset) returns the frequency-domain signal for the specified OFDM symbol sampling offset, symOffset, specified as a fraction of the cyclic prefix length using name-value pair syntax.

Examples

collapse all

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,:,:);

Perform OFDM demodulation on the DMG-Data field for an OFDM symbol offset, specified as a fraction of the cyclic prefix length.

Generate a WLAN waveform for a DMG format configuration, specifying the modulation and coding scheme (MCS).

cfg = wlanDMGConfig('MCS','12');
bits = [0; 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, specifying an OFDM symbol offset of 0.5.

sym = wlanDMGOFDMDemodulate(rx,'OFDMSymbolOffset',0.5);

Input Arguments

collapse all

Received time-domain signal, specified as a matrix with complex entries. Specify rx as a matrix of size Ns-by-Nr where Ns is the number of time-domain samples and Nr is the number of receive antennas. If Ns is not an integer multiple of the OFDM symbol length Ls for the specified field, the remaining mod(NS,Ls) symbols are ignored.

Data Types: double
Complex Number Support: Yes

OFDM symbol sampling offset, specified as a nonnegative scalar in the interval [0, 1]. The value you specify indicates the start location for OFDM demodulation relative to the beginning of the cyclic prefix.

Example: 'OFDMSymbolOffset',0.45

Data Types: double

Output Arguments

collapse all

Demodulated frequency-domain signal, returned as an array with complex entries. The size of sym is Nsubcarriers-by-Nsym-by-Nr, where Nsubcarriers is the number of active occupied subcarriers in the field and Nsym is the number of OFDM symbols.

Extended Capabilities

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

See Also

Functions

Objects

Introduced in R2019a