RajaKashif
Newbie level 3
- Joined
- May 23, 2010
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Trondheim, Norway
- Activity points
- 1,297
Ergodic Capacity Rayeligh Fading Channel
Hi,
Is the following correct to obtain the ergodic capacity in a Rayleigh Fading Channel.
******************************************************************************
SNRdB=2;
SNR = 10 ^ (SNRdB/10);
nsample_h=2000;
N0=1; % Noise power density
cap_inst=zeros(1,nsample_h);
for ChannelLoop = 1:nsample_h
h_11 = sqrt( N0 /2)* ( randn + sqrt(-1) * randn ) ;
cap_inst(ChannelLoop)=log2 (1 + SNR * abs(h_11)^2 );
clear h_11;
end
cap_ergodic=mean ( cap_inst );
Hi,
Is the following correct to obtain the ergodic capacity in a Rayleigh Fading Channel.
******************************************************************************
SNRdB=2;
SNR = 10 ^ (SNRdB/10);
nsample_h=2000;
N0=1; % Noise power density
cap_inst=zeros(1,nsample_h);
for ChannelLoop = 1:nsample_h
h_11 = sqrt( N0 /2)* ( randn + sqrt(-1) * randn ) ;
cap_inst(ChannelLoop)=log2 (1 + SNR * abs(h_11)^2 );
clear h_11;
end
cap_ergodic=mean ( cap_inst );