Saturday, October 27, 2012

BCH decoding in Matlab


clear all;
clc;
n=input('accept n=');
k=input('accept k=');
m=input('message bit=');
msg=gf([m]);
c=bchenc(msg,n,k);

decoded=bchdec(c,n,k)




O/P- accept n=7
accept k=4
message bit=[1 1 0 0]

decoded = GF(2) array.

Array elements =

           1           1           0           0

No comments:

Post a Comment