Professional Documents
Culture Documents
Eye Diagram Matlab Code
Eye Diagram Matlab Code
Eye Diagram Matlab Code
%
%=============== Eye diagram ============================
% put all bit plots on the first one
t_eye = linspace(0, T_period, N_div);
hold on
for m = 1:number_of_bits
A_temp = A((1+(m-1)*N_div):(m*N_div));
figure(1);
e = plot(t_eye,A_temp);
set(e,'LineWidth',1.5); % thickness of plotting lines
set(gca,'FontSize',14); % size of tick marks on both axes
end
figure(2);
h = plot(t,A,'lineWidth',1.5);
xlabel('time [s]','FontSize',14); % size of x label
set(gca,'FontSize',14); % size of tick marks on both axes