BSAA = winner2.AntennaArray('UCA', 1, 0.02);
MSAA1 = winner2.AntennaArray('ULA', 1, 0.01);
MSIdx = [2];
BSIdx = {1};
numLinks = 2;
rndSeed = 5;
cfgLayout = winner2.layoutparset(MSIdx,BSIdx, numLinks,[BSAA,MSAA1],[],rndSeed);
cfgLayout.Pairing = [1 ; 2 ];
cfgLayout.ScenarioVector = [6];
numBSSect = sum(cfgLayout.NofSect);
numMS = length(MSIdx);
cfgLayout.Stations(2).Velocity=[1.6;0;0];
cfgLayout.Stations(1).Pos(1:2) = [50, 150];
cfgLayout.Stations(2).Pos(1:2) = [10, 180];
BSPos = cell2mat({cfgLayout.Stations(1:numBSSect).Pos});
MSPos = cell2mat({cfgLayout.Stations(numBSSect+1:end).Pos});
frameLen = 64;
cfgWim = winner2.wimparset;
cfgWim.NumTimeSamples = 80;
cfgWim.IntraClusterDsUsed = 'yes';
cfgWim.CenterFrequency = 2.76e9;
cfgWim.UniformTimeSampling = 'yes';
cfgWim.ShadowingModelUsed = 'yes';
cfgWim.PathLossModelUsed = 'no';
cfgWim.UseManualPropCondition = 'yes';
cfgWim.RandomSeed = 31415927;
cfgWim.NormalizeChannelOutputs='false';
downWINNERChan = comm.WINNER2Channel(cfgWim,cfgLayout);
[ChanOut, pathGains] = downWINNERChan(sourceData);
pathGains1=squeeze(cell2mat(pathGains));
pathGains1=sum(pathGains)';
rx_data=cell2mat(ChanOut);
tx_data_estimate=rx_data./pathGains;
0 Comments
Sign in to comment.