MATLAB Examples

Create Non-HT Configuration Object

This example shows how to create non-HT 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.

Contents

Create Object and Then Modify Properties

Create a non-HT configuration object and view the default settings.

nonHT = wlanNonHTConfig
nonHT = 

  wlanNonHTConfig with properties:

             Modulation: 'OFDM'
       ChannelBandwidth: 'CBW20'
                    MCS: 0
             PSDULength: 1000
    NumTransmitAntennas: 1

Modify the defaults to specify four transmit antennas and to set the MCS to 3.

nonHT.NumTransmitAntennas = 4;
nonHT.MCS = 3
nonHT = 

  wlanNonHTConfig with properties:

             Modulation: 'OFDM'
       ChannelBandwidth: 'CBW20'
                    MCS: 3
             PSDULength: 1000
    NumTransmitAntennas: 4

Create Object and Overide Default Property Values

Create a non-HT configuration object. Use a Name,Value pair change the modulation scheme to DSSS.

nonHT2 = wlanNonHTConfig('Modulation','DSSS')
nonHT2 = 

  wlanNonHTConfig with properties:

      Modulation: 'DSSS'
        DataRate: '1Mbps'
    LockedClocks: 1
      PSDULength: 1000

For the DSSS modulation scheme, a different set of properties apply and are shown for the non-HT configuration object.