重建信道脉冲响应,并使用具有来自TR 38.901第7.7.1节的延迟配置文件CDL-D的集群延迟线(CDL)信道模型的路径滤波器执行定时偏移估计。
使用一个定义通道配置结构nrcdlchannel.
系统对象。使用延迟配置文件CDL-D,延迟扩展为10 ns,UE速度为15km / h:
v = 15.0;km / h中的%v速度FC = 4E9;Hz中的%载波频率c = physconst('LightSpeed');m / s中的速度速度FD =(v * 1000/3600)/ c * fc;Hz中%UE MAX多普勒频率CDL = nrcdlchannel;cdl.delayprofile ='cdl-d';cdl.delayspread = 10e-9;cdl.carrierfrequency = fc;cdl.maximumdopplershift = fd;
Configure the transmit array as [M N P Mg Ng] = [2 2 2 1 1], representing 1 panel (Mg=1, Ng=1) with a 2-by-2 antenna array (M=2, N=2) and P=2 polarization angles. Configure the receive antenna array as [M N P Mg Ng] = [1 1 2 1 1], representing a single pair of cross-polarized co-located antennas.
cdl.transmitantennaarray.size = [2 2 2 1 1];cdl.receiveantenntennaarray.size = [1 1 2 1 1];
使用8天线创建1子帧持续时间的随机波形。
SR = 15.36E6;t = sr * 1e-3;CDL.Samplerver = SR;cdlinfo =信息(CDL);nt = cdlinfo.numtransmitantennas;txwaveform =复杂(randn(t,nt),randn(t,nt));
通过通道发送输入波形。
[rxwaveform,pathgains] = cdl(txwaveform);
获取通道过滤中使用的路径滤波器。
pathfilters = getpathfilters(CDL);
执行时序偏移估计使用nrperfecttimingestimate
。
[offset,mag] = nrperfecttimingestimate(pathgains,pathfilters);
绘制信道脉冲响应的幅度。
[nh,nr] =尺寸(mag);绘图(0:(NH-1),MAG,'o:');hold上;绘图([偏移偏移],[0 max(mag(:))* 1.25],'k:'那'行宽',2);轴([0 nh-1 0 max(mag(:))* 1.25]);传奇=“| H |,天线”+ num2cell(1:nr);传说([传说“时间偏移估计”]);ylabel('| H |');Xlabel('渠道脉冲响应样本');