How can I create an instance of a rayleigh channel using comm.RayleighChannel?

8 ビュー (過去 30 日間)
Mia PK
Mia PK 2021 年 11 月 8 日
回答済み: Ashutosh Singh Baghel 2021 年 11 月 16 日
How can I create an instance of a rayleigh channel using comm.RayleighChannel? I would like to give the number of path delays and corresponding path gains to generat a channel coefficient WITHOUT passing a signal through it. Earlier, this was possible using the below code:
H = rayleighchan(ts,doppler,PathDelays, AvgPathGains);
But I'm unable to do it using comm.RayleighChannel. Please help.
Thanks!

回答 (1 件)

Ashutosh Singh Baghel
Ashutosh Singh Baghel 2021 年 11 月 16 日
Hi Mia,
I understand you wish to create a rayleigh channel using comm.RayleighChannel. Please find below an example to do so. Here some test values are assumed for this particular example.
rayleighchan = comm.RayleighChannel( ...
'SampleRate',10e3, ...
'PathDelays',[0 1.5e-4], ...
'AveragePathGains',[2 3], ...
'NormalizePathGains',true, ...
'MaximumDopplerShift',30, ...
'DopplerSpectrum',{doppler('Gaussian',0.6),doppler('Flat')}, ...
'RandomStream','mt19937ar with seed', ...
'Seed',22, ...
'PathGainsOutputPort',true)
rayleighchan =
comm.RayleighChannel with properties: SampleRate: 10000 PathDelays: [0 1.5000e-04] AveragePathGains: [2 3] NormalizePathGains: true MaximumDopplerShift: 30 DopplerSpectrum: {[1×1 struct] [1×1 struct]} ChannelFiltering: true PathGainsOutputPort: true Show all properties
Refer to the MATLAB Documentation link on "Rayleigh Channel" for further information.

カテゴリ

Help Center および File ExchangePropagation and Channel Models についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by