I wanted to add Additive White Gaussian Noise (AWGN) and involve effect of slow flat fading on my transmitted signal in Matlab.
I created noise with zero mean and variance of one by
awgn_noise = random('norm',0,1,1,NoOfSamples);
Then I created Rayleigh fading by
rayleigh = sqrt( (random('norm',0,1))^2 + (random('norm',0,1))^2 );
As far as I understand, the rayleigh values will attenuate the whole signal while gaussian noise values will be added to each sample of transmitted signal as:
received_signal = (transmitted_signal*rayleigh) + awgn_noise;
Am I doing it in a right way?