Main Content

getActiveSubchannelIndex

Active subchannel indices

Since R2021b

Description

idx = getActiveSubchannelIndex(cfgWUR) returns indices of the active 20 MHz subchannels in a WLAN wake-up radio (WUR) transmission parameterized by cfgWUR.

example

Examples

collapse all

Create a WUR configuration object for a transmission with two subchannels and four transmit antennas.

numSubchannels = 2;
cfgWUR = wlanWURConfig(numSubchannels,NumTransmitAntennas=4);

Get the active subchannel indices for the transmission.

idx = getActiveSubchannelIndex(cfgWUR)
idx = 1×2

     1     2

Input Arguments

collapse all

WUR transmission parameters, specified as a wlanWURConfig object.

Output Arguments

collapse all

Active subchannel indices, returned as an integer-valued row vector of length equal to the number of subchannels in the transmission.

Data Types: double

Extended Capabilities

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

Version History

Introduced in R2021b