'How to plot a MatLab eye diagram from external data?

I have a .csv file with data from a single-ended digital 3.3-CMOS level signal. The file contains 10usec of a 120Mbit/s random data stream with 0.1nsec time resolution. So the file contains 100000 values of a 120Mbit/s data stream.

  1. I drag-n-drop .csv file to MatLab window
  2. Next I press import button (the randombits table appears in the list of objects)
  3. Next I create an array from the table with the table2array(randombits) function
  4. Next I create a vector from the array with the randombits_array(:,2)
  5. Next I try to plot an eye diagram by the vector:

ed = comm.EyeDiagram('SampleRate',120,'SamplesPerSymbol',50,'TracesToDisplay',50,'YLimits',[-2 4]);

ed(vect);

Then I see this plot:

enter image description here

How can I get a single eye?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source