% For Slow Fading, Channel coefficients are the same over block transmission;
h_10 = sqrt(1 / 2) * abs(randn + j * randn) * ones(1, N);
h_20 = sqrt(1 / 2) * abs(randn + j * randn) * ones(1, N);
% For Fast Fading, Channel coefficients changes from one symbol to the other
h_10 = sqrt(1 / 2) * abs(randn(1, N) + j * randn(1, N));
h_20 = sqrt(1 / 2) * abs(randn(1, N) + j * randn(1, N));
InputSamplePeriod = 1/100000;
MaxDopplerShift = 130;
PathDelays = [0 1.5e-5 3.2e-5];
AvgPathGaindB = [0, -3, -3];
channel = rayleighchan(InputSamplePeriod , MaxDopplerShift, PathDelays, AvgPathGaindB);
symbols_with_fading=filter(channel,transmitted_symbols);
fairul said:Dear apprentice,
after i changed the matlab code from slow fading →fast fading ,
the result from the simulation as shown in file attached.
Do i need to do another additional editing to matlab code for a good simulation result?
Best regards.
Last edited by fairul on 08 Apr 2009 7:27; edited 1 time in total
RCPC = convenc(msg, trellis, puncture);
RCPC = convenc(msg, trellis);
RCPC(4:4:end) = [];
punc_bit = convenc(msg, trellis, complement_puncture);
punc_bit = convenc(msg, trellis);
punc_bit = punc_bit(4:4:end);
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?