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.

wlanS1GOFDMInfo

Return OFDM Information for S1G format

Syntax

info = wlanS1GOFDMInfo(field,cfg)

Description

example

info = wlanS1GOFDMInfo(field,cfg) returns a structure, info, containing orthogonal frequency-division multiplexing (OFDM) information for the input field, field, and sub-1-Ghz (S1G) format configuration object, cfg.

Examples

collapse all

Obtain OFDM information for the S1G-Data field for a specified channel bandwidth.

Create a WLAN S1G format configuration, specifying the channel bandwidth.

cfg = wlanS1GConfig('ChannelBandwidth','CBW1');

Return and display OFDM information for the S1G-Data field and the specified format configuration.

info = wlanS1GOFDMInfo('S1G-Data',cfg);
disp(info);
                 FFTLength: 32
                  CPLength: 8
            NumSubchannels: 1
                  NumTones: 26
    ActiveFrequencyIndices: [26x1 double]
          ActiveFFTIndices: [26x1 double]
               DataIndices: [24x1 double]
              PilotIndices: [2x1 double]

Perform OFDM demodulation on the S1G-SIG field and extract the data and pilot subcarriers.

Generate a WLAN waveform for an S1G format configuration.

cfg = wlanS1GConfig;
bits = [1; 0; 0; 1];
waveform = wlanWaveformGenerator(bits,cfg);

Obtain the field indices and extract the S1G-SIG field.

ind = wlanFieldIndices(cfg);
rx = waveform(ind.S1GSIG(1):ind.S1GSIG(2),:);

Perform OFDM demodulation on the HE-SIG-A field.

sym = wlanS1GDemodulate(rx,'S1G-SIG',cfg);

Return OFDM information, extracting the data and pilot subcarriers.

info = wlanS1GOFDMInfo('S1G-SIG',cfg);
data = sym(info.DataIndices,:,:);
pilots =  sym(info.PilotIndices,:,:);

Input Arguments

collapse all

Field for which to return OFDM information, specified as one of these values.

  • 'S1G-LTF1': Return OFDM information for the first S1G long training field (S1G-LTF1).

  • 'S1G-SIG': Return OFDM information for the S1G signaling (S1G-SIG) field.

  • 'S1G-LTF2N': Return OFDM information for the subsequent S1G long training fields (S1G-LTF2N).

  • 'S1G-SIG-A': Return OFDM information for the S1G signal A (S1G-SIG-A) field.

  • 'S1G-SIG-B': Return OFDM information for the S1G signal B (S1G-SIG-B) field.

  • 'S1G-Data': Return OFDM information for the S1G-Data field.

Data Types: char | string

Physical layer (PHY) format configuration, specified as a wlanS1GConfig object.

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, in samples, returned as a positive integer.

Data Types: double

Number of active subcarriers, returned as a nonnegative integer.

Data Types: double

Number of subchannels, returned as a positive integer. This field is always returned as 1 when the packet format defined by cfg is 'S1G-1M', indicating a single 1-MHz subchannel. For all other packet formats, the subchannel bandwidth is 2 MHz.

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