number of error in bch code
Afficher commentaires plus anciens
I have a problem with this program , that for increase of snr the number of error don't decrease !!! bch(n=15,k=5,t=3)
clc;clear all;close all;
t_error=0;
noe=1000;
snr=2;
msg=double(rand(1,10000*5)>0.5);
msg_1=vec2mat(msg,5);
code=bchenc(gf(msg_1),15,5);
code_double=double(code.x);
noise=vec2mat(randn(1,150000)*sqrt(15/5)*(1/sqrt(2*snr)),15);
noisycode=code_double+noise;
code_1=sign(noisycode);
code_2=(code_1+1)/2;
[decode,numerr,ccode]=bchdec(gf(code_2),15,5);
r=double(decode.x);
noe1=nnz(r-msg_1);
Réponses (0)
Catégories
En savoir plus sur Communications Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!