%% Create DMG Configuration Object
% This example shows how to create DMG configuration objects. It also shows how to change the default property settings by using dot notation or by overriding the default settings by using Name,Value pairs when creating the object.
%
%% Create Object and Then Modify Properties
% Create a DMG configuration object and view the default settings. By default, the configuration object creates properties to model the DMG control PHY.

dmg = wlanDMGConfig

% Model the SC PHY by modifying the defaults to specify an MCS of 5.

dmg.MCS = 5

% For the various configurations, different sets of configuration fields apply and are visible. By changing the MCS setting from 0 to 5, we see that the configured object includes the AggregationMPDU and LastRSSI fields.
%
%% Create Object and Override Default Property Values
% Create a DMG configuration object for OFDM PHY. Use Name,Value pairs to set the MCS to 14 and specify four training fields.

dmg2 = wlanDMGConfig('MCS',14,'TrainingLength',4)

% Copyright 2012 The MathWorks, Inc.