'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.
- I drag-n-drop .csv file to MatLab window
- Next I press import button (the randombits table appears in the list of objects)
- Next I create an array from the table with the table2array(randombits) function
- Next I create a vector from the array with the randombits_array(:,2)
- 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:
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 |
|---|

