To plot the eye diagram of a signal in Matlab, we can plot multiple instances of the signal after certain time intervals. Here are the steps to plot the eye diagram of a signal called x
:
win_len
and a certain offset offset
. The window length win_len
represents the time range for which we want to observe the signal (typically the bit time), and the window offset is the time delay at which we start observing the signal (typically half the bit time).main.m61 chars3 lines
num_win
.main.m45 chars2 lines
t_axis
for the plot as well as the vertical axis v_axis
.main.m78 chars3 lines
hold on
command to plot each window as a separate line on the same figure.main.m243 chars12 lines
The resulting plot will be the eye diagram of the signal x
, where the horizontal axis represents time and the vertical axis represents amplitude.
gistlibby LogSnag