0

.mat ファイルに含まれる行列 X は、取得した信号を表します。行列の場所 (i, j) の要素は、j 番目の画面の i 番目のサンプルです。サンプリング周波数は 4GS/s です。MatLab を使用して、X に含まれる信号に対してアイ ダイアグラムをプロットするにはどうすればよいですか? 試してみましたが、行列 X からアイ ダイアグラムを描画できませんでした ( http://ge.tt/8Xq5SYh/v/1?cを参照)。私が使用した行列Xへのリンクは次のとおりです。

http://ge.tt/8Xq5SYh/v/0

そして私の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]);                                       

誰かが私にやり方を教えてくれませんか? 多分マトリックスが正しくない?

答えてくれた人に事前に感謝します

4

1 に答える 1