mish111990
Newbie level 5
Hi,
I am trying to calculate the SNR from the source to the destination of a Rayleigh flat-fading channel with AWGN using the following formula:
SNR = (P*(h_sd^2))/N0;
where P=transmit power
h_sd=channel gain
N0=noise variance
I know the transmit power is going to be a constant so I considered it to be 27dB.
I have modeled the channel gain as
h_sd=abs((sqrt(0.5))*(randn(1)+j*randn(1)));
Am I on the right track? and I have no idea how to get N0
I am trying to calculate the SNR from the source to the destination of a Rayleigh flat-fading channel with AWGN using the following formula:
SNR = (P*(h_sd^2))/N0;
where P=transmit power
h_sd=channel gain
N0=noise variance
I know the transmit power is going to be a constant so I considered it to be 27dB.
I have modeled the channel gain as
h_sd=abs((sqrt(0.5))*(randn(1)+j*randn(1)));
Am I on the right track? and I have no idea how to get N0