wlanVHTOFDMInfo

Return OFDM information for VHT format

Syntax

info = wlanVHTOFDMInfo(field,cfg)
info = wlanVHTOFDMInfo(field,cbw,gi)
info = wlanVHTOFDMInfo(field,cbw)

Description

example

info = wlanVHTOFDMInfo(field,cfg) returns a structure, info, containing orthogonal frequency-division multiplexing (OFDM) information for the input field, field, and the very-high-throughput (VHT) format configuration object cfg.

example

info = wlanVHTOFDMInfo(field,cbw,gi) returns OFDM information for the specified channel bandwidth cbw and guard interval gi. To return OFDM information for the VHT-Data field when the format configuration is unknown, use this syntax.

example

info = wlanVHTOFDMInfo(field,cbw) returns OFDM information for the specified channel bandwidth cbw. To return OFDM information for any field other than VHT-Data when the format configuration is unknown, use this syntax.

Examples

collapse all

Perform OFDM demodulation on the VHT-LTF and extract the data and pilot subcarriers.

Generate a WLAN waveform for a VHT format configuration.

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

Obtain the field indices and extract the VHT-LTF.

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

Perform OFDM demodulation on the VHT-LTF.

sym = wlanVHTLTFDemodulate(rx,cfg);

Return OFDM information, extracting the data and pilot subcarriers.

info = wlanVHTOFDMInfo('VHT-LTF',cfg);
data = sym(info.DataIndices,:,:);
pilots = sym(info.PilotIndices,:,:);

Obtain OFDM information for the VHT-LTF for a specified channel bandwidth.

Specify a channel bandwidth of 40 MHz.

cbw = 'CBW40';

Return and display OFDM information for the L-LTF.

info = wlanVHTOFDMInfo('L-LTF',cbw);
disp(info);
                 FFTLength: 128
                  CPLength: [64 0]
            NumSubchannels: 2
                  NumTones: 104
    ActiveFrequencyIndices: [104x1 double]
          ActiveFFTIndices: [104x1 double]
               DataIndices: [96x1 double]
              PilotIndices: [8x1 double]

Obtain OFDM information for the VHT-Data field for a specified channel bandwidth and short guard interval.

Specify a channel bandwidth of 80 MHz and a short guard interval.

cbw = 'CBW80';
gi = 'Short';

Return and display OFDM information for the VHT-Data field.

info = wlanVHTOFDMInfo('VHT-Data',cbw,gi);
disp(info);
                 FFTLength: 256
                  CPLength: 32
            NumSubchannels: 4
                  NumTones: 242
    ActiveFrequencyIndices: [242x1 double]
          ActiveFFTIndices: [242x1 double]
               DataIndices: [234x1 double]
              PilotIndices: [8x1 double]

Input Arguments

collapse all

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

  • 'L-LTF': demodulate the legacy long training field (L-LTF).

  • 'L-SIG': demodulate the legacy signal (L-SIG) field.

  • 'VHT-SIG-A': demodulate the VHT signal A (VHT-SIG-A) field.

  • 'VHT-SIG-B': demodulate the VHT signal B (VHT-SIG-B) field.

  • 'VHT-LTF': demodulate the VHT long training field (VHT-LTF).

  • 'VHT-Data': demodulate the VHT-Data field.

Data Types: char | string

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

Channel bandwidth, specified as one of these values.

  • 'CBW20': indicates a channel bandwidth of 20 MHz.

  • 'CBW40': indicates a channel bandwidth of 40 MHz.

  • 'CBW80': indicates a channel bandwidth of 80 MHz.

  • 'CBW160': indicates a channel bandwidth of 160 MHz.

Data Types: char | string

Guard interval duration, in microseconds, specified as 'Short' or 'Long'.

Data Types: double

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 20-MHz subchannels, returned as a positive 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™.

Introduced in R2019a