Matlab 实现二进制比特流汉明编码(Hanminencoder)

参考:https://www.cnblogs.com/yhm138/articles/14856610.html

n=7;k=4;   %汉明码的参数
msg=randi([0,1],1000,1); %信息序列
code=encode(msg,n,k,'hamming/binary'); %编码

猜你喜欢

转载自blog.csdn.net/weixin_43935696/article/details/129070087