Saturday, October 27, 2012

BCH encoding 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)


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

c = GF(2) array.

Array elements =

           1           0           1           0           0           1           1

No comments:

Post a Comment