clc
clear
M=4; % Size of The constellation
sayan=0; % Counter
tic
for Power=0:2:12
Power
sayan=sayan+1;
disp(sayan)
P=10^(Power/10); % Total power of the source and relay nodes
Pow=[1 1 1 1 1]*P/6; % Power of each realy node
Ps=P/6; % Power of the source node
d=[0.0117, 0.1365,0.2844, 0.4692, 0.8938 ]; % Location of the relay nodes
omsr=d.^(-3); % Variance of the channel coefficients
omrd=(1-d).^(-3);