channel.m
上传用户:xinxin4122
上传日期:2013-04-03
资源大小:464k
文件大小:1k
- function re_symbol= channel(H, tr_symbol,sig2,last_symbol,Nr,Nt,pdp);
- % 把发送数据符号排成一列向量,每个发送天线的发送符号各占连续的一段
- % 每个发送天线发送符号所占一段的长度为frame_length+length(pdp)-1
- % 认为加入CP后可完全ISI,每行的开始补上个号的length(pdp)-1
- clear j;
- frame_length=size(tr_symbol,2);
- tr_symbol=[last_symbol tr_symbol];
- noise=sqrt(sig2)*1/sqrt(2)*(randn(Nr*frame_length,1) + j*randn(Nr*frame_length,1));
-
- tr_symbol=tr_symbol.';
- tr_symbol=reshape(tr_symbol,Nt*(frame_length+length(pdp)-1),1);
- re_symbol1=H*tr_symbol+noise;
- re_symbol=reshape(re_symbol1,frame_length,Nr).';