gusucode.com > 多天线系统的各种信号检测算法matlab源码程序 > MIMO_detection/encoder.m
function [trans_bit]=encoder(Tx,encoder_input) for tx=1:Tx for modu=1:encoder_input a=rand(1); if a>0.5 trans_bit(tx,modu)=1; else trans_bit(tx,modu)=0; end end end return;