资源简介
昆明理工大学纠错编码原理及MATLAB实现-刘爱莲-源代码.rar
代码片段和文件信息
%program_3_9
%describe: (74) hamming code ability through AWGN White Gauss Noise
%
% time : 2015.4.18
% state : finished!
% edit by: leo
% Page : 83
% caution: Configuration -> Configuration and Parameters...
% Tab Sover -> stop time set to 100000
SNR = -1 : 1 : 5;
%--------------------------------
for n = 1 : length(SNR)
errB = SNR(n) * 2; %errB = SNR(n) ;
sim(‘hm_awgn_2‘);
S2(n) = [mean(hm_awgn)]‘;
S3(n) = S2(n) + eps;
EN(n) = [SNR(n)]‘;
end
semilogy(EN(S3)‘b-*‘);
axis([-151e-51]);
grid
xlabel(‘SNR in White Gauss Noise‘);
ylabel(‘error rate‘);
title(‘performance of block code in White Gauss Noise‘);
评论
共有 条评论