.mat 文件中包含的矩阵 X 表示采集的信号。矩阵的位置 (i, j) 的元素是第 j 个屏幕的第 i 个样本。采样频率等于 4 GS/s。如何使用 MatLab 绘制相对于 X 中包含的信号的眼图?我尝试过,但无法从矩阵 X 中绘制眼图(参见http://ge.tt/8Xq5SYh/v/1?c)。这是我使用的矩阵 X 的链接:
和我的 MatLab 代码:
%sampling frequency fs=4 GS/s
rows=4000; %4000 rows (samples) |__ in matrix X
columns=10; %1000 columns (screens) |
%for plot all the graphics in the same window (overlapping)
hold on;
%index of the single row (column for the single column)
row=1:1:100;
t=1:1:100;
for column=1:columns,
%plot
plot(t,X(row, column),'-bo','LineWidth',1, 'MarkerEdgeColor','b', 'MarkerFaceColor','b', 'MarkerSize',2);
end
%axis properties
set(gca,'YTick', [-0.5 -0.45 -0.4 -0.35 -0.3 -0.25 -0.2 -0.15 -0.1 -0.05 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5]); %soli valori di ascisse da visualizzare
grid on;
set(gca,'GridLineStyle','-');
axis([0 10 -0.5 0.5]);
有人可以尝试告诉我该怎么做吗?也许矩阵不正确?
提前感谢任何回答的人