Example: Using the Semianalytic Panel in BERTool

This example illustrates how BERTool applies the semianalytic technique, using 16-QAM modulation. This example is a variation on the example in Example: Using the Semianalytic Technique, tailored to use BERTool instead of using the semianalytic function directly.

Running the Semianalytic Example

  1. To set up the transmitted and received signals, run steps 1 through 4 from the code example in Example: Using the Semianalytic Technique. The code is repeated below.

    % Step 1. Generate message signal of length >= M^L.
    M = 16; % Alphabet size of modulation
    L = 1; % Length of impulse response of channel
    msg = [0:M-1 0]; % M-ary message sequence of length > M^L
    
    % Step 2. Modulate the message signal using baseband modulation.
    modsig = qammod(msg,M); % Use 16-QAM.
    Nsamp = 16;
    modsig = rectpulse(modsig,Nsamp); % Use rectangular pulse shaping.
    
    % Step 3. Apply a transmit filter.
    txsig = modsig; % No filter in this example
    
    % Step 4. Run txsig through a noiseless channel.
    rxsig = txsig*exp(j*pi/180); % Static phase offset of 1 degree
  2. Open BERTool and go to the Semianalytic panel.

  3. Set parameters as shown below.

  4. Click Plot.

Visible Results of the Semianalytic Example

After you click Plot, BERTool creates a listing for the resulting data in the data viewer.

BERTool plots the data in the BER Figure window.


© 1994-2005 The MathWorks, Inc.