📄 ip_08_01.m
字号:
% MATLAB script for Illustrative Problem 1, Chapter 8. echo ongamma_db=[-20:0.1:20];gamma=10.^(gamma_db./10);p_error=q(sqrt(2.*gamma));capacity=1.-entropy2(p_error);pause % Press a key to see a plot of error probability vs. SNR/bitclfsemilogx(gamma,p_error)xlabel('SNR/bit')title('Error probability versus SNR/bit')ylabel('Error Prob.')pause % Press a key to see a plot of channel capacity vs. SNR/bitclfsemilogx(gamma,capacity)xlabel('SNR/bit')title('Channel capacity versus SNR/bit')ylabel('Channel capacity')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -