%% Create WLAN S1G Configuration Object and Return Packet Format
% Create an S1G configuration object with default property values.

cfgS1G = wlanS1GConfig;

% Compute and display the packet format. The default properties specify a transmission with short preamble.

format = packetFormat(cfgS1G);
disp(format)

% Now create an S1G configuration object, specifying a long preamble.

cfgS1GLongPreamble = wlanS1GConfig('Preamble','Long');

% Compute and display the packet format.

format = packetFormat(cfgS1GLongPreamble);
disp(format)

% Copyright 2012 The MathWorks, Inc.