实现(2, 1, 7)卷积码编码信息序列1001 1010 1111 1100生成序列g1 = 1011011;g2 = 1111001初始状态全0.以上参数可自行在main中修改。
代码如下:/***This is an simple example program of convolutional encoder. *The information sequence, the register initial states and the generation sequence * can all be modified in the main function. */
1