Waveform Generation
This example shows how to generate standards-compliant WLAN waveforms. The IEEE® 802.11™ standards define a physical layer protocol data unit (PPDU) as the transmission unit at the physical layer. For a detailed description of the PPDU field structures for each transmission format, see WLAN PPDU Structure.
Generate WLAN Waveforms
Generate EHT MU Waveform
Specify information bits to transmit.
bits = [1 0 0 1 1];
Parameterize the transmission by creating an extremely high-throughput multi-user (EHT MU) configuration object with a channel bandwidth of 320 MHz.
cfgEHTMU = wlanEHTMUConfig("CBW320");Specify an oversampling factor for fast-Fourier-transform-based oversampling.
osf = 2;
Generate an EHT MU waveform, as defined in [1], for the specified bits and transmission parameters. The waveform comprises four packets with 15 microseconds of idle time between them.
waveformEHTMU = wlanWaveformGenerator(bits,cfgEHTMU, ... NumPackets=4,IdleTime=15e-6, ... OversamplingFactor=osf);
Plot the EHT MU waveform, scaling the x-axis relative to the channel bandwidth.
fsEHTMU = wlanSampleRate(cfgEHTMU.ChannelBandwidth); time = (0:length(waveformEHTMU)-1)/fsEHTMU; plot(time,abs(waveformEHTMU)) xlabel ("Time (seconds)") ylabel("Magnitude")

Generate HE MU Waveform
Parameterize the transmission by creating an HE multi-user (HE MU) configuration object.
cfgHEMU = wlanHEMUConfig(192);
Generate an HE MU waveform, as defined in [2], comprising three packets with 30 microseconds of idle time between packets for the specified bits and transmission parameters.
waveformHEMU = wlanWaveformGenerator(bits,cfgHEMU, ...
NumPackets=3,IdleTime=30e-6);Plot the HE MU waveform, scaling the x-axis relative to the channel bandwidth.
fsHEMU = wlanSampleRate(cfgHEMU.ChannelBandwidth); time = (0:length(waveformHEMU)-1)/fsHEMU; plot(time,abs(waveformHEMU)) xlabel ("Time (seconds)") ylabel("Magnitude")

Generate WUR Waveform
Parameterize the transmission by creating a wake-up radio (WUR) configuration object.
cfgWUR = wlanWURConfig(ChannelBandwidth="CBW40",NumUsers=2);Generate a single-packet WUR waveform, as defined in [3], for the specified bits and transmission parameters.
waveformWUR = wlanWaveformGenerator(bits,cfgWUR);
Plot the WUR waveform, scaling the x-axis relative to the channel bandwidth.
fsWUR = wlanSampleRate(cfgWUR.ChannelBandwidth); time = (0:length(waveformWUR)-1)/fsWUR; plot(time,abs(waveformWUR)) xlabel ("Time (seconds)") ylabel("Magnitude")

Generate VHT Waveform
Parameterize the transmission by creating a VHT configuration object with default property values.
cfgVHT = wlanVHTConfig;
Generate a VHT waveform, as defined in [4], for the specified bits and transmission parameters. The waveform comprises five packets with 20 microseconds of idle time between them.
waveformVHT = wlanWaveformGenerator(bits,cfgVHT, ...
NumPackets=5,IdleTime=20e-6);Plot the VHT waveform, scaling the x-axis relative to the channel bandwidth.
fsVHT = wlanSampleRate(cfgVHT.ChannelBandwidth); time = (0:length(waveformVHT)-1)/fsVHT; plot(time,abs(waveformVHT)) xlabel ('Time (seconds)') ylabel('Magnitude')

See Also
Functions
Objects
wlanHESUConfig|wlanHEMUConfig|wlanHETBConfig|wlanWURConfig|wlanDMGConfig|wlanVHTConfig|wlanHTConfig|wlanNonHTConfig|wlanS1GConfig
Topics
References
[1] IEEE® Std 802.11be™-2024 “IEEE Standard for Information Technology — Telecommunications and Information Exchange between Systems — Local and Metropolitan Area Networks — Specific Requirements — Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications. Amendment 2: Enhancements for Extremely High Throughput (EHT).” https://ieeexplore.ieee.org/document/11090080
[2] IEEE Std 802.11ax™-2021 (Amendment to IEEE Std 802.11™-2020). “Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications. Amendment 1: Enhancements for High Efficiency WLAN.” IEEE Standard for Information Technology — Telecommunications and Information Exchange between Systems. Local and Metropolitan Area Networks — Specific Requirements.
[3] IEEE Std 802.11ba™-2021. “Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications. Amendment 3: Wake-Up Radio Operation.” IEEE Standard for Information Technology — Telecommunications and Information Exchange between Systems. Local and Metropolitan Area Networks — Specific Requirements.
[4] IEEE Std 802.11-2020 (Revision of IEEE Std 802.11-2016). “Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications.” IEEE Standard for Information Technology — Telecommunications and Information Exchange between Systems — Local and Metropolitan Area Networks — Specific Requirements.