Main Content

showResourceMapping

Show the subcarrier mapping of the OFDM symbols created by the OFDM modulator System object

Description

example

showResourceMapping(hMod) shows a visualization of the subcarrier mapping for the OFDM symbols created by the OFDM modulator System object™.

showResourceMapping(hMod,ci) uses the values in input ci to number the subcarrier indices that the function displays. The subcarrier indices are numbered from 1 to ciNFFT, where NFFT is the number of FFT points.

Examples

collapse all

Create and display an OFDM modulator System object™ with default property values.

hMod = comm.OFDMModulator
hMod = 
  comm.OFDMModulator with properties:

               FFTLength: 64
    NumGuardBandCarriers: [2x1 double]
            InsertDCNull: false
          PilotInputPort: false
      CyclicPrefixLength: 16
               Windowing: false
              NumSymbols: 1
     NumTransmitAntennas: 1

Modify the number of subcarriers and symbols.

hMod.FFTLength = 128;
hMod.NumSymbols = 2;

Verify that the number of subcarriers and the number of symbols changed.

disp(hMod)
  comm.OFDMModulator with properties:

               FFTLength: 128
    NumGuardBandCarriers: [2x1 double]
            InsertDCNull: false
          PilotInputPort: false
      CyclicPrefixLength: 16
               Windowing: false
              NumSymbols: 2
     NumTransmitAntennas: 1

Use the showResourceMapping object function to show the mapping of data, pilot, and null subcarriers in the time-frequency space.

showResourceMapping(hMod)

Figure OFDM Subcarrier Mapping for All Tx Antennas contains an axes. The axes with title OFDM Subcarrier Mapping for All Tx Antennas contains an object of type image.

Input Arguments

collapse all

OFDM modulator, specified as a comm.OFDMModulator System object.

Subcarrier indices to visualize, specified as a two-element row vector of integers. ci should satisfy diff(ci) = NFFT − 1.

See Also

Functions

Objects

Introduced in R2014a