1 Star 0 Fork 324

seu_ss/cybersectookits

forked from openKylin/cybersectookits 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Process_CDL_Channel_UMa.m 1.83 KB
一键复制 编辑 原始数据 按行查看 历史
鲁鑫 提交于 2023-05-11 08:16 . uma
function [Output_Waveform_MIMO,cdl] = Process_CDL_Channel_UMa(Input_Waveform,Sampling_Rate,Tx_Angle,Rx_Angle,...
Moving_Speed,fc,Chanel_Seed,tauLos,PLosdb,PhiAOA,PhiAOD,PhiZOA,PhiZOD,CASDLos,CASALos,...
CZSDLos,CZSALos,XPRLos)
% process CDL Channel
cdl = nrCDLChannel;
cdl.DelayProfile = 'custom';
cdl.CarrierFrequency = fc;
cdl.PathDelays = tauLos;
cdl.AveragePathGains = PLosdb;
cdl.AnglesAoA = PhiAOA;
cdl.AnglesAoD = PhiAOD;
cdl.AnglesZoA = PhiZOA;
cdl.AnglesZoD = PhiZOD;
cdl.HasLOSCluster = false;
% cdl.KFactorFirstCluster = K;
cdl.AngleSpreads = [CASDLos CASALos CZSDLos CZSALos];
cdl.XPR = XPRLos;
cdl.NumStrongestClusters = 0;
% MaximumDopplerShift - 最大多普勒频移 (Hz)
c = physconst('lightspeed'); % 电磁波传播速度 (m/s)
v = Moving_Speed * 1000 / 3600; % UE 移动速度 (m/s)
cdl.MaximumDopplerShift = v / c * cdl.CarrierFrequency; % 最大多普勒频移 (Hz)
% Channel Seed
if(Chanel_Seed>0)
cdl.Seed = Chanel_Seed;
end
cdl.SampleRate = Sampling_Rate;
cdl.TransmitAntennaArray.Size = [1 1 1 1 1]; % 4*8极化天线
cdl.TransmitAntennaArray.ElementSpacing = [0.5 0.5 0.5 0.5]; % 天线间隔 0.5λ
% cdl.TransmitAntennaArray.PolarizationAngles = [-45 45]; % 极化天线角度±45°
cdl.TransmitAntennaArray.Orientation = Tx_Angle; % Tx 天线朝向
% ReceiveAntennaArray - 接收端天线阵列
cdl.ReceiveAntennaArray.Size = [4 8 1 1 1];
% cdl.ReceiveAntennaArray.ElementSpacing = [0.5 0.5 0.5 0.5]; % 天线间隔 0.5λ
% cdl.ReceiveAntennaArray.PolarizationAngles = [-45 45]; % 双极化天线角度±45% UE 单天线
cdl.ReceiveAntennaArray.Orientation = Rx_Angle; % Rx 天线朝向
Output_Waveform_MIMO = cdl(Input_Waveform);
end
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/seu-ss/cybersectookits.git
git@gitee.com:seu-ss/cybersectookits.git
seu-ss
cybersectookits
cybersectookits
master

搜索帮助