Simulation of a fading channel (Rayleigh or Rice model)
y = fading_chn_process(chn,x);
Fading channel object (see fading_chn_init)
Input baseband signal
Output baseband signal, after fading.
Proceed to Rayleigh or Rice model simulation on a signal, represented in baseband form.
fd = 10; // Maximum doppler shift = 10 Hz fs = 1e4; // Sampling frequency = 10 kHz chn = fading_chn_init('rice', fd, fs, 0.0); x = ones(fs,1); // 1 second x = fading_chn_process(chn,x); | ![]() | ![]() |
Example of channel simulation (channel magnitude)