📄 tu2_8.m
字号:
SNR=0:10;
% SNR=[0.0001,SNR];
M=4;
k=0.8;
for i=1:length(SNR)
output1(i)=capacity_water(SNR(i),M);
output2(i)=capacity_rician(SNR(i),M,k,'erg');
end
plot(SNR,output1,'b-^',SNR,output2,'k-^');
%plot routines follow. These will change depending upon the type of plot.
%The following routines are based on the given example above
xlabel('SNR');
ylabel('Capacity (Bits/sec)');
title('Ergodic Capacity Variation with channel knowledge and without channel knowledge');
legend('channel known to tx','channel unknown to tx');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -