% The first program ( binary_eye.m ) uses the four different pulses
to
% generate eye diagrams of binary polar signaling.
% ( binary_eye.m )
%
clear; clf;
data = sign(randn(1,400)); % Generate 400 random
bits
Tau=64; % Define the symbol period
dataup=upsample(data, Tau); % Generate impulse train
yrz=conv(dataup,prz(Tau)); % Return to zero polar
signal
yrz=yrz(1:end-Tau+1);
ynrz=conv(dataup,pnrz(Tau)); % Non-return to zero polar
ynrz=ynrz(1:end-Tau+1);
ysine=conv(dataup,ps