Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = (1:100)'; %generate an array [100x1]
- %generate a channel object
- sampleRate100kHz = 100e3; % Sample rate of 100K Hz
- maxDopplerShift = 100; % Maximum Doppler shift of diffuse components (Hz)
- delayVector = [0 1*e-9]; % Discrete delays of two-path channel(s)
- gainVector = [0 -3]; % Average path gains (dB)
- % Configure a Rayleigh channel object for user 1
- h = comm.RayleighChannel( ...
- 'SampleRate', sampleRate100kHz, ...
- 'PathDelays', delayVector, ...
- 'AveragePathGains', gainVector, ...
- 'NormalizePathGains', true,...
- 'MaximumDopplerShift', maxDopplerShift, ...
- 'DopplerSpectrum', doppler('Jakes'), ...
- 'RandomStream', 'mt19937ar with seed', ...
- 'Seed', 20, ...
- 'PathGainsOutputPort', true);
- [y,PATHGAINS] = step(h,x);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement