channel.m
上传用户:xinxin4122
上传日期:2013-04-03
资源大小:464k
文件大小:1k
源码类别:

邮电通讯系统

开发平台:

Matlab

  1. function re_symbol= channel(H, tr_symbol,sig2,last_symbol,Nr,Nt,pdp);
  2. % 把发送数据符号排成一列向量,每个发送天线的发送符号各占连续的一段
  3. % 每个发送天线发送符号所占一段的长度为frame_length+length(pdp)-1
  4. % 认为加入CP后可完全ISI,每行的开始补上个号的length(pdp)-1
  5. clear j;
  6. frame_length=size(tr_symbol,2);
  7. tr_symbol=[last_symbol tr_symbol];
  8. noise=sqrt(sig2)*1/sqrt(2)*(randn(Nr*frame_length,1) + j*randn(Nr*frame_length,1));
  9.     
  10. tr_symbol=tr_symbol.';
  11. tr_symbol=reshape(tr_symbol,Nt*(frame_length+length(pdp)-1),1);
  12. re_symbol1=H*tr_symbol+noise;
  13. re_symbol=reshape(re_symbol1,frame_length,Nr).';