Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Generate channel coefficients using WINNER II channel model

**Download Required:** To
use this function, first download the WINNER II Channel Model
for Communications System Toolbox™ from the Add-On Explorer. For more information on downloading add-ons, see Get Add-Ons (MATLAB) and Manage Your Add-Ons (MATLAB).

`chanCoef = winner2.wim(cfgWim,cfgLayout)`

```
[chanCoef,pathDelays]
= winner2.wim(cfgWim,cfgLayout)
```

```
[chanCoef,pathDelays,finalCond]
= winner2.wim(cfgWim,cfgLayout)
```

```
[chanCoef,pathDelays,finalCond]
= winner2.wim(cfgWim,cfgLayout,initCond)
```

`[`

also
returns the path delays for all links.`chanCoef`

,`pathDelays`

]
= winner2.wim(`cfgWim`

,`cfgLayout`

)

`[`

also
returns the final condition of the system after generating the channel
coefficients.`chanCoef`

,`pathDelays`

,`finalCond`

]
= winner2.wim(`cfgWim`

,`cfgLayout`

)

`[`

generates
the channel coefficients by using the initial system conditions rather
than of performing random initialization. `chanCoef`

,`pathDelays`

,`finalCond`

]
= winner2.wim(`cfgWim`

,`cfgLayout`

,`initCond`

)`initCond`

is
of the same form as `finalCond`

and is typically
the `finalCond`

output from the prior call of this
function. Use this syntax to repeatedly generate channel coefficients
for continuous time samples.

Continuously generate channel coefficients for each link in a two-link system layout.

Configure model parameters.

```
cfgWim = winner2.wimparset;
cfgWim.SampleDensity = 20;
cfgWim.RandomSeed= 10; % For repeatability
```

Configure layout parameters.

BSAA = winner2.AntennaArray('UCA',8,0.02); % UCA-8 array for BS MSAA1 = winner2.AntennaArray('ULA',2,0.01); % ULA-2 array for MS1 MSAA2 = winner2.AntennaArray('ULA',4,0.005); % ULA-4 array for MS2 BSIdx = [2,3]; MSIdx = {1}; L = 2; rndSeed = 5; fgLayout = winner2.layoutparset(MSIdx,BSIdx, ... NL,[BSAA,MSAA1,MSAA2],[],rndSeed);

Generate channel coefficients for the first time.

[H1,~,finalCond] = winner2.wim(cfgWim,cfgLayout);

Generate a second set of channel coefficients.

[H2,~,finalCond] = winner2.wim(cfgWim,cfgLayout,finalCond);

Concatenate H1 and H2 in time domain.

```
H = cellfun(@(x,y) cat(4,x,y), H1, H2, 'UniformOutput', false);
```

Plot H for the first link, 1st Tx, 1st Rx and 1st path.

figure; Ts = finalCond.delta_t(1); % Sample time for the 1st link plot(Ts*(0:2*cfgWim.NumTimeSamples-1)', abs(squeeze(H{1}(1,1,1,:)))); xlabel('Time (s)'); ylabel('Amplitude'); title('First Path Coefficient of 1st Link, 1st Tx and 1st Rx');

The image shows the channel continuity over the two outputs
from the `winner2.wim`

function.

[1] Kyosti,
Pekka, Juha Meinila, et al. *WINNER II Channel Models*.
D1.1.2 V1.2. IST-4-027756 WINNER II, September 2007.

Was this topic helpful?