%% Return Field Indices for Oversampled HE MU Waveform
% Create a WLAN HE MU configuration object and use it to generate an HE MU waveform with packet extension and an oversampling factor.

cfg = wlanHEMUConfig(192);
cfg.User{1}.NominalPacketPadding = 16; 
bits = [1; 0; 0; 1];
osf = 3;
waveform = wlanWaveformGenerator(bits,cfg,OversamplingFactor=osf);

% Return and display the PPDU field indices.

ind = wlanFieldIndices(cfg,OversamplingFactor=osf);
disp(ind)

% Copyright 2019 The MathWorks, Inc.