Examples


Use this example index to jump to code examples in the documentation.

Getting Started with the Communications Toolbox

A Detailed Example

Random Signals and Error Analysis

Computing Error Rates
Eye Diagrams
Scatter Plots

Source Coding

Scalar Quantization Example 1
Scalar Quantization Example 2
Optimizing Scalar Quantization Parameters
DPCM Encoding and Decoding
Comparing Optimized and Nonoptimized DPCM Parameters
A µ-Law Compander

Block Coding

Using a Decoding Table.
Generic Linear Block Coding.
Reed-Solomon Coding Syntaxes
Detecting and Correcting Errors

Convolutional Coding

A MATLAB Trellis Structure
Hard-Decision Decoding
Soft-Decision Decoding.
A Rate-2/3 Feedforward Encoder
A Punctured Convolutional Code

Modulation

Simple Analog Modulation Example
Varying the Filter's Cutoff Frequency
Time Lag From Filtering
Simple Digital Modulation Example

Special Filters

Raised Cosine Filter Delays.
Using rcosine and rcosflt to Implement Square-Root Raised Cosine Filters.
Compensating for Group Delays When Analyzing Data

Galois Field Computations

Creating Galois Field Variables
Basic Manipulations of Galois Arrays
Addition and Subtraction
Multiplication
Exponentiation
Solving Linear Equations.
Multiplication and Division of Polynomials
Roots of Polynomials