matlab-generate-wlan-waveform

Generate standard-compliant IEEE 802.11 WLAN waveforms using MATLAB WLAN Toolbox.

995|122|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill matlab-generate-wlan-waveform
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: matlab-generate-wlan-waveform
Source: https://github.com/matlab/matlab-agentic-toolkit/tree/main/skills-catalog/wireless-communications/matlab-generate-wlan-waveform
Command: npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill matlab-generate-wlan-waveform

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Configuring IEEE 802.11 waveform generation in MATLAB involves format-specific config objects, allocation index schemes, and PSDU length methods that vary across standards, leading to frequent errors and silent misconfigurations. This Skill provides the correct patterns, constraints, and reference tables to generate valid WLAN waveforms on the first attempt.

Core Features & Use Cases

  • All 802.11 Formats: Covers Non-HT (802.11a/g/b), HT (802.11n), VHT (802.11ac), HE (802.11ax), EHT (802.11be), and UHR (802.11bn / Wi-Fi 8) including OFDMA, MU-MIMO, trigger-based uplink, extended range, and preamble puncturing.
  • Duration Targeting and Payload Sizing: Computes PSDU/APEP lengths from a target transmit duration, including an iterative loop for multi-user OFDMA configs where wlanAPEPLength does not apply.
  • MAC Frames and Multi-Packet Waveforms: Builds packets with MAC frame payloads (Data, Block Ack, Beacon), A-MPDU aggregation, and mixed-format sequences with SIFS/DIFS/PIFS spacing.
  • Use Case: A test engineer needs an 80 MHz 802.11ax OFDMA waveform with four 242-tone RUs and per-user MCS settings. The Skill supplies the correct allocation indices ([192 192 192 192]), per-user configuration loop, and verification via ruInfo and showAllocation.

Quick Start

Ask the agent to generate an 80 MHz 802.11ax HE-MU OFDMA waveform with four users on 242-tone RUs and plot the time-domain signal and RU allocation.

Frequently Asked Questions about matlab-generate-wlan-waveform

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a WLAN waveform in MATLAB?

Create a format config object such as wlanVHTConfig or wlanHEMUConfig, set bandwidth, MCS, and antenna properties, build payload bits, then call wlanWaveformGenerator(bits, cfg). Use wlanSampleRate(cfg) to get the correct sample rate.

How do I configure OFDMA resource units in wlanHEMUConfig?

Pass allocation indices, not RU sizes, to the constructor. For example, wlanHEMUConfig([192 192 192 192]) creates an 80 MHz config with four 242-tone RUs. The vector length sets the bandwidth: 1, 2, 4, or 8 indices for 20, 40, 80, or 160 MHz.

Does MATLAB support 802.11bn Wi-Fi 8 waveform generation?

UHR (802.11bn) support requires MATLAB R2026a or later and uses example helper files rather than built-in toolbox objects. Copy the helpers with setupExample("wlan/UHRParameterizationExample", folder), then use uhrMUConfig, uhrTBConfig, and uhrWaveformGenerator.

Why does getPSDULength fail on my EHT configuration?

EHT configs use psduLength(cfg), not getPSDULength(cfg). The getPSDULength method applies only to HE-SU, HE-MU, and HE-TB configs, while Non-HT, HT, and VHT expose PSDULength as a property.

How do I target a specific packet duration for a WLAN waveform?

For single-user configs, call wlanAPEPLength(cfg, 'TxTime', microseconds) or wlanPSDULength for Non-HT/HT, passing integer microseconds. For multi-user OFDMA configs, use an iterative loop that adjusts APEPLength until transmitTime(cfg) matches the target.

When should I not use this WLAN waveform generation approach?

This Skill covers only the transmit side of WLAN links. It does not handle channel modeling, receiver processing, EVM or spectral mask measurements, or non-WLAN waveforms such as 5G NR, LTE, or Bluetooth.