%% App-Based WLAN Waveform Generation
% This example shows how to generate IEEE® 802.11™ waveforms by using the WLAN Waveform Generator app.
%% Open WLAN Waveform Generator App
% On the Apps tab of the MATLAB® toolstrip, select the WLAN Waveform Generator app icon under Signal Processing and Communications. This selection opens the Wireless Waveform Generator app configured for WLAN waveform generation.
%
%% Select IEEE 802.11 PHY Format
% Choose the PHY format of the waveform you want to generate by selecting one of the formats under WLAN (IEEE 802.11) in the Waveform Type section of the app toolstrip. The app supports these IEEE 802.11 PHY formats.
% 802.11ax
% 802.11ah
% 802.11ad
% 802.11n/ac
% 802.11p
% 802.11b/g
% 802.11a/g/j
%
%% Generate WLAN Waveforms
% Set transmission and configuration parameters by specifying options in the Waveform tab on the left pane of the app. Add impairments and select visualization tools by specifying options in the Generation section of the app toolstrip. To visualize the waveform, click Generate. You can export the generated waveform and its parameters by clicking Export. You can export the waveform to:
% A MATLAB script with a .m extension
% a file with a .bb or .mat extension
% Your MATLAB workspace as a structure
%% Generate HE TB Waveform with Default Settings
% This image shows the Time Scope and Spectrum Analyzer visualization results for a high-efficiency trigger-based (HE TB) waveform. The waveform comprises a single packet. The RU size is 52 subcarriers, and the RU index is 3. All other transmission and configuration parameters take their default values.
%
%% Generate HE ER SU Waveform with Packet Extension
% This image shows the Time Scope and Spectrum Analyzer visualization results for a high-efficiency extended-range single-user (HE ER SU) waveform. The waveform comprises two packets separated by an idle time of 50 microseconds, and contains a nominal packet padding of 8 microseconds for packet extension. The transmission of this waveform uses two antennas and Hadamard spatial mapping. All other format and configuration parameters take their default values.
%
%% Generate HE MU Waveform with 10 Transmit Antennas
% This image shows the RU & Subcarrier Assignment visualization results for a high-efficiency multi-user (HE MU) waveform comprising a single packet. The transmission bandwidth is 80 MHz and the number of antennas is 10, which requires configuration of the Pre-HE cyclic shifts (ns) parameter. The transmission includes midamble in the HE-Data field. The allocation indices determine the RU and subcarrier assignment. This image shows RU numbers, sizes, indices, and allocated users, and the result of clicking the first RU in the transmission. All resource units use Fourier spatial mapping. Users specified by indices 1-3 use a modulation and coding scheme (MCS) index of 7, the user specified by index 4 uses an MCS index of 10, and the users specified by indices 5 and 6 use an MCS index of 11. The app displays the resulting PSDU length for each user. All other format and configuration parameters take their default values.
%
%
%% Transmit WLAN Waveform
% This feature requires Instrument Control Toolbox™ software. To transmit a generated waveform, click the Transmitter tab on the app toolstrip and configure the instruments. You can use any instrument supported by the rfsiggen function.
% Copyright 2020 The MathWorks, Inc.