How to derive Eye Diagram Metrics in Matlab
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I recently changed from Matlab R2021a to R2023a and recognized that I cannot use comm.EyeDiagram() anymore because it has been removed. The recommended replacement eyediagram() only plots the symbols but does not offer the same analysis features such as jitter analysis, eye width, height, etc.. These features can only be found in the simulink block.
How can I obtain these metrics, now?
0 comentarios
Respuestas (2)
Naren
el 28 de Mzo. de 2023
Hello Marc,
In MATLAB R2023a, the function comm.EyeDiagram() has been replaced with the function eyediagram(), which is mainly used for visualizing the signal. However, you can use the new function comm.JitterAnalyzer() to analyse the jitter in your signal and obtain metrics such as eye width and height.
To use comm.JitterAnalyzer(), you can pass the signal data as input and set the appropriate parameters, such as the symbol rate, the reference level, and the jitter tolerance. The function will then analyse the jitter in your signal and output the relevant metrics. Eye height and width can be calculated using the jitter analyzer.
Here is a example code for your reference.
% Generate random signal
data = randi([0,1],1000,1);
% Create modulator and demodulator objects
mod = comm.BPSKModulator;
demod = comm.BPSKDemodulator;
% Modulate and add noise
modulated = mod(data);
noisy = awgn(modulated,10);
% Analyze jitter
analyzer = comm.JitterAnalyzer('SymbolRate',1,'ReferenceLevel',0,'JitterTolerance',0.2);
jitterMetrics = analyzer(noisy);
% Display results
disp(jitterMetrics.EyeWidth)
disp(jitterMetrics.EyeHeight)
Hope this resolves your issue.
3 comentarios
Naren
el 28 de Mzo. de 2023
Hello Marc,
Make sure you have communication toolbox installed and if the problem continues to persist try adding the path of communication toolbox in the 'set path' option available in enviornment tab in MATLAB or try re-installing the toolbox.
Ganapathi Subramanian
el 29 de Mzo. de 2023
Hello Marc,
It is my understanding that you are working on eye diagram and you want to know about how to access certain features in latest version of Matlab.
The SerDes Toolbox can provide eye measurements and features at the MATLAB side, but that happens through Statistical Analysis and Jitter Analysis.
For more information regarding ‘SerDes Toolbox’, refer this link
Ver también
Categorías
Más información sobre Test and Measurement en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!