在MATLAB上实现扩展的SCM信道模型
clc;clear;
scmpar=scmparset;
linkpar=linkparset(6); % 10 links
%linkpar.MsVelocity=0;
scmpar.NumMsElements=2;
scmpar.NumBsElements=2;
antpar=antparset;
[H delays out]=scm(scmpar,linkpar,antpar);
% Initialize the parameters
NumLoop = 90;%帧长
carrier_count=80;%子载波个数
carriers=1:carrier_count;
NumSubc = 128;%IFFT和FFT的点数
NumCP =8;%循环前缀
NT=20 ; %导频之间的间隔,块状导频
Np=ceil(NumLoop/NT)+1;%导频数 %加1的原因:使最后一列也是导频
delta_t = out.delta_t;
f_sym = 3.84e6; % sample frequency
osr = floor((1/f_sym)/scmpar.DelaySamplingInterval); % over sample rate
ts = 1/(f_sym*osr); % sample time_step
1