%% Generate Default WUR Waveform
% Configure and generate a WLAN waveform containing a WUR packet with default settings.
% Parameterize the transmission by creating a WUR configuration object with default property values.

cfgWUR = wlanWURConfig;

% Generate a PSDU of relevant length.

psduLength = getPSDULength(cfgWUR);
psdu = randi([0 1],8*psduLength,1);

% Generate and plot the waveform.

waveform = wlanWaveformGenerator(psdu,cfgWUR);
figure
plot(abs(waveform))
title('WUR Waveform')
xlabel('Sample')
ylabel('Amplitude')

% Copyright 2020 The MathWorks, Inc.