是一个对mimo连续相位调制系统的均衡程序

源代码在线查看: encode_bit.m

软件大小: 221 K
上传用户: ATT320
关键词: mimo 相位调制 均衡
下载地址: 免注册下载 普通下载 VIP

相关代码

				function [output, state] = encode_bit(g, input, state)
				
				
				% This function takes as an input a single bit to be encoded,
				% as well as the coeficients of the generator polynomials and
				% the current state vector.
				% It returns as output n encoded data bits, where 1/n is the
				% code rate.
				
				% the rate is 1/n
				% k is the constraint length
				% m is the amount of memory
				[n,k] = size(g);
				m = k-1;
				
				% determine the next output bit
				for i=1:n
				   output(i) = g(i,1)*input;
				   for j = 2:k
				      output(i) = xor(output(i),g(i,j)*state(j-1));
				   end;
				end
				
				state = [input, state(1:m-1)];
							

相关资源