Sep 27, 2016 #1 H hmayna Newbie level 6 Joined Sep 17, 2016 Messages 12 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 94 Hi all, in AF protocol the relay multiply the received signal from the source by an amplification factor β=sqrt(P/(N0+P|hsr|²) where P is the transmitted power,hsr is the channel 's vector between source and relay, my question is about how to calculate |hsr|² if we have hsr=randn(1,N)+j*randn(1,N) i other way hsrr is a N complex number.
Hi all, in AF protocol the relay multiply the received signal from the source by an amplification factor β=sqrt(P/(N0+P|hsr|²) where P is the transmitted power,hsr is the channel 's vector between source and relay, my question is about how to calculate |hsr|² if we have hsr=randn(1,N)+j*randn(1,N) i other way hsrr is a N complex number.
Sep 29, 2016 #2 D David83 Advanced Member level 1 Joined Jan 21, 2011 Messages 410 Helped 45 Reputation 92 Reaction score 45 Trophy points 1,308 Activity points 3,639 In MATLAB you can write Code: abs(hsr)^2
Sep 30, 2016 #3 D David83 Advanced Member level 1 Joined Jan 21, 2011 Messages 410 Helped 45 Reputation 92 Reaction score 45 Trophy points 1,308 Activity points 3,639 I forgot to mention that because hsr is a vector you need to use abs(hsr).^2 (with . preceding ^).