Communications Toolbox    

Eye Diagrams

An eye diagram is a simple and convenient tool for studying the effects of intersymbol interference and other channel impairments in digital transmission. To construct an eye diagram, plot the received signal against time on a fixed-interval axis. At the end of the fixed time interval, wrap around to the beginning of the time axis. Thus the diagram consists of many overlapping curves. One way to use an eye diagram is to look for the place where the "eye" is most widely opened, and use that point as the decision point when demapping a demodulated signal to recover a digital message.

To produce an eye diagram from a signal, use the eyediagram function. The signal can have different formats, as the table below indicates.

Representing In-Phase and Quadrature Components of Signal
Signal Format
Source of In-Phase Components
Source of Quadrature Components
Real matrix with two columns
First column
Second column
Complex vector
Real part
Imaginary part
Real vector
Vector contents
Quadrature component is always zero

Example: Eye Diagrams

The code below illustrates the use of the eye diagram for finding the best decision point. It maps a random digital signal to a 16-QASK waveform, then uses a raised cosine filter to simulate a noisy transmission channel. Several commands manipulate the filtered data to isolate its steady-state behavior. Then the eyediagram command produces an eye diagram from the resulting signal.

Notice that a vertical line down the center of the diagram would cross the "eye" at its most widely opened point, as in the left-hand side below.

In the right-hand diagram above, a similar vertical line would not cross the eye at the most widely opened point. This diagram results from the commands

This example continues by using the information gathered from the eye diagrams to choose the decision-timing offset in the demodmap command. (Notice that the actual offset value in demodmap is offset1+1 because eyediagram and demodmap express offsets in a different way.)

The output is

By contrast, an offset value based on offset2 leads to errors in the recovered digital signal. Your exact number of errors might vary because the message msg_d consists of random numbers.

The output is

As an additional example of using the eyediagram function, the commands below display the eye diagram with no offset, but based on data that is sampled with an offset of two samples. This sampling offset simulates errors in timing that result from being two samples away from perfect synchronization.


  Error Rates Scatter Plots