MATLAB Examples

The example performs Huffman encoding and decoding using a source whose alphabet has three symbols. Notice that the huffmanenco and huffmandeco functions use the dictionary created by

Compare, using eye diagrams, Gaussian minimum shift keying (GMSK) and minimum shift keying (MSK) modulation schemes.

Create a Huffman code dictionary using the huffmandict function.

Construct an orthogonal frequency division modulation (OFDM) modulator/demodulator pair and to specify their pilot indices. The OFDM modulator System object enables you to specify

Encode and decode a sequence from a source having three symbols.

Employ raised cosine filtering to reduce inter-symbol interference (ISI) that results from a nonlinear amplifier.

Perform a symbol error rate (SER) simulation of an over-the-air OFDM communication link.

Attempt to correct for a frequency offset using the carrier synchronizer object. Increase the damping factor of the synchronizer and determine if the offset was corrected.

Determine the delay for a convolutionally encoded and filtered link. Use the delay to accurately determine the number of bit errors.

Generates a bit error rate versus Eb/No curve for a link that uses 16-QAM modulation and a rate 2/3 convolutional code in AWGN.

Open the 8-PSK model. The model generates an 8-PSK signal, applies white noise, displays the resulting constellation diagram, and computes the error statistics.

Open the Binary-to-Gray model. The model converts a binary sequence to a Gray-coded sequence and vice versa by using Data Mapper blocks.

Transmit an LDPC-encoded, QPSK-modulated bit stream through an AWGN channel. Then demodulate, decode, and count errors.

Use the convolutional encoder and Viterbi decoder System objects to simulate a punctured coding system. The complexity of a Viterbi decoder increases rapidly with the code rate.

Filter a 16-QAM signal using a pair of square root raised cosine matched filters. Plot the eye diagram and scatter plot of the signal. After passing the signal through an AWGN channel,

Equalize a BPSK signal using a linear equalizer with an least mean square (LMS) algorithm.

Quantize an exponential signal with and without companding and compare the mean square distortions.

Simulate an end-to-end communication link employing 16-QAM using turbo codes in an AWGN channel. Estimate the bit error rate.

Use an OFDM modulator and demodulator in a simple, 2x2 MIMO error rate simulation. The OFDM parameters are based on the 802.11n standard.

Equalize a QAM signal passed through a frequency-selective fading channel using RLS and LMS algorithms. Compare the performance of the two algorithms.

Transmit and receive standard and shortened RS-encoded, 64-QAM-modulated data through an AWGN channel. Compare the performance of the standard and shortened codes.

Transmit Reed-Solomon encoded data using 8-PSK over an AWGN channel. Demodulate and decode the received signal and collect error statistics. Plot the bit error rate estimate.

The OQPSK Modulator Baseband block configured for single-rate processing using integer or bit for the input type.

Implement an ElGamal public key cryptosystem by using the Galois functions.

The OQPSK Demodulator Baseband block configured for multirate processing using integer or bit for the input type.

Demonstrates creation of an nonstandard trellis structure for a convolutional encoder with uncoded bits and feedback. The encoder cannot be created using poly2trellis because the

This model shows the behavior of least mean square (LMS) and recursive least square (RLS) adaptive equalizers in a communication link with a fading channel. The transmitter and receiver

Create a BPSK modulator and an equalizer object.

The OQPSK Modulator Baseband block configured for multirate processing using integer or bit for the input type.

The OQPSK Demodulator Baseband block configured for single-rate processing using integer or bit for the input type.

This model shows the behavior of adaptive equalizer algorithms at a receiver for modulated data transmitted along a channel.

The model serves as a unit test bench for the convolutional code implemented. The model shows how to define and use a trellis that describes a convolutional code. The particular code in this

The OQPSK Modulator Baseband and OQPSK Demodulator Baseband blocks connected with no channel or impairments distorting the signal between them. They are configured for frame-based

Open the Detect Binary Preamble model. The model creates a 40-bit packet consisting of two 6-bit preamble sequences and two 14-bit random data sequences. Detect the preamble locations by

The slexScramblerDescrambler model illustrates use of a scrambler-descrambler block pair.

Open the model. The model creates a packet by generating a complex preamble and prepending it to a sequence of QPSK symbols. The packet passes through a noisy channel and is input to a Preamble

Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a location from the following list:

See all countries