amplification factor of Amplify and forward protocol

Status
Not open for further replies.

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.
 

In MATLAB you can write

Code:
abs(hsr)^2
 
Reactions: hmayna

    hmayna

    Points: 2
    Helpful Answer Positive Rating
I forgot to mention that because hsr is a vector you need to use abs(hsr).^2 (with . preceding ^).
 
Reactions: hmayna

    hmayna

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…