Main Content

showAllocation

Resource unit allocation

Description

showAllocation(cfg) shows the resource unit (RU) allocation in a WLAN transmission parameterized by format configuration cfg. You can get more information about an RU by clicking on it.

example

showAllocation(cfg,ax) specifies ax, the axes that the function uses to plot the allocation.

Examples

collapse all

Create a configuration object for an HE MU transmission with a channel bandwidth of 40 MHz.

AllocationIndex = [100 98];
cfgHE = wlanHEMUConfig(AllocationIndex);

Show the RU allocation in the resultant transmission. This configuration object specifies seven users across four RUs.

showAllocation(cfgHE)

Figure RU Assignment and Occupied Subcarriers contains an axes object. The axes object with ylabel Subcarrier Index contains 13 objects of type patch, line, text.

As shown in this figure, you can highlight and show the details of multiple RUs at once. To do this, use Ctrl+Click, or Command+Click on macOS systems.

Multiple RUs selected at once

Input Arguments

collapse all

Format configuration, specified as an object of type wlanEHTMUConfig, wlanEHTTBConfig, wlanHEMUConfig, wlanHESUConfig, or wlanHETBConfig.

  • To show the RU allocation for an EHT multi-user (EHT MU) transmission, specify this input as a wlanEHTMUConfig object.

  • To show the RU allocation for an EHT trigger-based (EHT TB) transmission, specify this input as a wlanEHTTBConfig object.

  • To show the RU allocation for an HE single-user (HE SU) or HE extended-range SU (HE ER SU) transmission, specify this input as a wlanHESUConfig object.

  • To show the RU allocation for an HE multi-user (HE MU) transmission, specify this input as a wlanHEMUConfig object.

  • To show the RU allocation for an HE trigger-based (HE TB) transmission, specify this input as a wlanHETBConfig object.

Plot axes, specified as an Axes object. For more information, see Axes Properties. If you do not specify this input, the showAllocation object function shows the RU allocation plotted on the default axes.

Version History

Introduced in R2019b

expand all